fnReloadAjax() + sorting + filter + pagination
fnReloadAjax() + sorting + filter + pagination
Hi!
I just switched from an old version of DataTables to a new version and now the reloading of my table doesn't work anymore. It seems that sorting and such have changed greatly, so I was not able to come up with a solution by simply searching through the form.
I have a tabel like this:
[code]
oTable_packages = $('#some_id').dataTable({
"bProcessing": true,
"sAjaxSource": 'bin/mogi_packages_get.php',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns": [
null, // id
null, // note
null, // # of items
null, // sent,
null, // finished
null // duration
],
"aaSorting": [[ 0, "desc" ]]
});
[/code]
And somewhere else I called
[code]
oTable_packages.fnReloadAjax();
[/code]
to reload the table. How do I make this m´work, that the table is refreshed, keeps it's current page, order and filter?
Kind regards,
Alex
I just switched from an old version of DataTables to a new version and now the reloading of my table doesn't work anymore. It seems that sorting and such have changed greatly, so I was not able to come up with a solution by simply searching through the form.
I have a tabel like this:
[code]
oTable_packages = $('#some_id').dataTable({
"bProcessing": true,
"sAjaxSource": 'bin/mogi_packages_get.php',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns": [
null, // id
null, // note
null, // # of items
null, // sent,
null, // finished
null // duration
],
"aaSorting": [[ 0, "desc" ]]
});
[/code]
And somewhere else I called
[code]
oTable_packages.fnReloadAjax();
[/code]
to reload the table. How do I make this m´work, that the table is refreshed, keeps it's current page, order and filter?
Kind regards,
Alex
This discussion has been closed.