iDisplayStart on initialization doesn't work when Processing is Server Side

iDisplayStart on initialization doesn't work when Processing is Server Side

cusscuss Posts: 1Questions: 0Answers: 0
edited May 2012 in Bug reports
Hi all, i'm using now the nightly build of DataTables, because none of the older versions worked with this.
I have the talbe search beeing processed by my server so i can save the search and reprocess with other aplications. Once a search is done, if the user refresh the page, i wan't him to see his last search. When the page is reloaded, everything comes up perfectly except the 'iDisplayStart', that seems to do nothing.

Above is one of the codes the server processed (pagination is 10 rows of length, page 3)

$('#clients').dataTable({
'bProcessing': true,
'bServerSide': true,
'sAjaxSource': '/client/search',
'aaSorting': [[4,"desc"]],
'iDisplayStart': 20,
'iDisplayLength': 10,
'aoColumns': [
null,
null,
null,
{ 'sType': 'currency' },
{ 'sType': 'currency' },
{ 'bSortable': false },
],
'sPaginationType': 'full_numbers',
'sDom': '<"dataTables_header"lfr>t<"dataTables_footer"ip>'
});

Thanks in advance to all developers in this project for this useful plugin for jQuery!

Replies

  • allanallan Posts: 63,382Questions: 1Answers: 10,449 Site admin
    This should work, as shown in this example: http://live.datatables.net/ukosow/edit#javascript,html . Can you link me to a test change showing the error please?

    Allan
This discussion has been closed.