Sort not work correctly when adding Show/Hide column

Sort not work correctly when adding Show/Hide column

badeabadea Posts: 16Questions: 0Answers: 0
edited September 2012 in General
Hi to all !

I use this example - http://datatables.net/release-datatables/examples/api/row_details.html.
Works fine, but the columns are not sorted correctly. When try to apply sort on individual column, it sort the next column, not the currently.
How to fix this problem ?
I use server side processing with version 1.9.3

Replies

  • badeabadea Posts: 16Questions: 0Answers: 0
    Solved. I have found the answer.
    In server-side script is needed an update of these lines:

    [code]
    $sOrder = "";
    if ( isset( $_GET['iSortCol_0'] ) )
    {
    $sOrder = "ORDER BY ";
    for ( $i=0 ; $i
This discussion has been closed.