How to change the position of sorting icons?

How to change the position of sorting icons?

David123David123 Posts: 11Questions: 0Answers: 0
edited October 2013 in General
I have 2 theads in my header.

One thead row have header name and another one thead row have custom filters.
But sorting icons appears on Second row(Its in custom row filters section row).
But i need to appear this(sorting icons) in near headers label row(First row).

How to change this icons to first row?

My code:




Rank
Name
Asset Size
ResiCov
CommCov
Type
Uncoded Contact Activity

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    when you have multiple rows in your header, you can specify which row gets the sorting magic with bSortCellsTop.

    By default, the bottom cells are used. Setting bSortCellsTop to true changes it to the top cells.

    http://datatables.net/ref#bSortCellsTop

    [code]
    $(document).ready( function() {
    $('#example').dataTable( {
    "bSortCellsTop": true
    } );
    } );
    [/code]
This discussion has been closed.