DataTable Sorting and Pagination issue
DataTable Sorting and Pagination issue
Hi,
I am stuck on this one for days.I am using a datatable 1.8 for which when I retrieve data for the first time,I am able to do pagination and sorting properly.But when later I search and retrieve other data,on sorting (click of the header)or paging (click on the page number) I get data sorted of the 1st table retrieved.
$("#data-table1").dataTable({
"aLengthMenu": [[5, 10, 15, 20, -1], [5, 10, 15, 20, "All"]],
"asSorting": [[1, "asc"]],
"iDisplayLength": 5,
"bFilter": true,
"bInfo": false,
"sPaginationType": "full_numbers",
"bJQueryUI": false,
"bRetrieve": true,
"bStateSave": true,
"bDestroy": true
});
These are the things I have tried.
Please give me a solution .
Thanks.
I am stuck on this one for days.I am using a datatable 1.8 for which when I retrieve data for the first time,I am able to do pagination and sorting properly.But when later I search and retrieve other data,on sorting (click of the header)or paging (click on the page number) I get data sorted of the 1st table retrieved.
$("#data-table1").dataTable({
"aLengthMenu": [[5, 10, 15, 20, -1], [5, 10, 15, 20, "All"]],
"asSorting": [[1, "asc"]],
"iDisplayLength": 5,
"bFilter": true,
"bInfo": false,
"sPaginationType": "full_numbers",
"bJQueryUI": false,
"bRetrieve": true,
"bStateSave": true,
"bDestroy": true
});
These are the things I have tried.
Please give me a solution .
Thanks.
This discussion has been closed.
Replies
Allan