locked
TableSorter Jquery Plugin RRS feed

  • Question

  • User-1499457942 posted

    Hi

      How to set the Width of individual column & which Columns to be Sorted.

    Secondly it is not showing Vertical Scroller. I also not want sorting images to be shown in Edit/Delete.

    table.tablesorter {
    	font-family:arial;
    	background-color: #CDCDCD;
    	margin:10px 0pt 15px;
    	font-size: 9pt;
    	width: 50%;
        max-height:150px;
        overflow:auto ;
    	text-align: left;
    }
    
    <asp:Repeater ID="Repeater1" runat="server" >
                             <HeaderTemplate>
                                <table id="rptTransporter" class="tablesorter">
                                    <thead>
                                    <tr >
                                    <th>Code</th>
                                    <th>Name</th>
                                    <th>Edit</th>
                                    <th>Delete</th>
                                    </tr>
                                        </thead>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <div >
                                <tr style="height: 20px;">
                                    <td>
                                        <%# Eval("trcode") %>
                                    </td>
                                    <td>
                                        <%# Eval("trname") %>
                                    </td>
                                    <td>
                                        <a id="lnkEdit" href="#">Edit</a>
                                    </td>
                                    <td>
                                        <a id="lnkDelete" href="#">Delete</a>
                                    </td>
                                </tr>
                                    </div>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>

    Thanks

    Wednesday, January 6, 2016 9:37 AM

Answers

  • User1686483761 posted

    Hi,

    >>How to set the Width of individual column & which Columns to be Sorted.

    http://jsfiddle.net/Mottie/em87cupL/

    >>Secondly it is not showing Vertical Scroller

    http://jsfiddle.net/Mottie/mqv16pd4/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 7, 2016 9:56 AM