How to turn bServerSide on/off programmatically
How to turn bServerSide on/off programmatically
I have a table that gets re-loaded with data. If I have more than 1,000 I would prefer to turn bServerSide on so I only get 10 records at a time. Otherwise, over 1,000 will slow down or freeze the browser.
Once my JavaScript code is running, it runs a test that determines how many records I'm going to have ( more or less than 1,000 ). And that point, how can I turn bServerSide on or off PROGRAMATICALLY, and then load the table with the data from a DIFFERENT URL. I use fnReloadAjax to change the URL that it uses, but I can't figure out how to toggle the bServerSide flag
This is my current pathetic attempt to do that:
[code]
table.fnReloadAjax({"oFeatures": { "bServerSide": [true|false] }, "sAjaxSource": new_url},function() {
// whatever
});
[/code]
Once my JavaScript code is running, it runs a test that determines how many records I'm going to have ( more or less than 1,000 ). And that point, how can I turn bServerSide on or off PROGRAMATICALLY, and then load the table with the data from a DIFFERENT URL. I use fnReloadAjax to change the URL that it uses, but I can't figure out how to toggle the bServerSide flag
This is my current pathetic attempt to do that:
[code]
table.fnReloadAjax({"oFeatures": { "bServerSide": [true|false] }, "sAjaxSource": new_url},function() {
// whatever
});
[/code]
This discussion has been closed.
Replies
Allan
Allan
Allan
Allan