Sort not work correctly when adding Show/Hide column
Sort not work correctly when adding Show/Hide column
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
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
This discussion has been closed.
Replies
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