zebra widget enable sorting on all column unnecessarily?

Posted by I Like PHP on Stack Overflow See other posts from Stack Overflow or by I Like PHP
Published on 2010-03-30T09:09:11Z Indexed on 2010/03/30 9:13 UTC
Read the original article Hit count: 413

Filed under:

i m using jQUery tablsorter plugin, it's working perfect,but now problem is ... i want to enable sorting only on 1'st and 3'rd column, and i also want to show different color of alternate row. i used widget:[zebra], but using widget zebra, it enables sorting on all column as well as images(asc.gif,desc.gif,bg.gif) is also appearing on all headers whereas i only want these on only first and 3rd column

how to use zebra widget with specific column sorting not the whole columns sorting

here is my code

<script type="text/javascript">
    $(document).ready(function()
    {
        $("#managerTable").tablesorter(
                                      {widgets: ['zebra']},
                                      {sortList:[[0,0]],headers:{2:{sorter:false},4:{sorter:false}}
        });     
});
</script>

© Stack Overflow or respective owner

Related posts about jquery-plugins