Sorting without reset iDisplayStart.
Sorting without reset iDisplayStart.
Hello,
I got a problem when I click header to sorting column. It will reset iDisplayStart to 0.
Example
I click sort on page 2 (iDisplayStart = 10) then iDisplayStart reset to 0.
How I set iDisplayStart to current page.
[code]oTable = $('#example').dataTable({
"bJQueryUI" : true,
"bServerSide":true,
"bProcessing": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "paramSearch",
"bStateSave": true,
"bLengthChange": true,
"aoColumns": [
{ "mDataProp": 'name'},
{ "mDataProp": 'value'}
],
});
[/code]
Thanks.
I got a problem when I click header to sorting column. It will reset iDisplayStart to 0.
Example
I click sort on page 2 (iDisplayStart = 10) then iDisplayStart reset to 0.
How I set iDisplayStart to current page.
[code]oTable = $('#example').dataTable({
"bJQueryUI" : true,
"bServerSide":true,
"bProcessing": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "paramSearch",
"bStateSave": true,
"bLengthChange": true,
"aoColumns": [
{ "mDataProp": 'name'},
{ "mDataProp": 'value'}
],
});
[/code]
Thanks.
This discussion has been closed.
Replies
It actually is possible to do this with the new API in 1.10, but you would need to implement the click to sort listener yourself and use the new `draw()` method which allows a standing redraw to occur. I'm still working on the documentation for 1.10 though...!
Allan