How to prevent data load with server side processing during table initialization?
How to prevent data load with server side processing during table initialization?
Description of problem:
I am changing a datatable from using client-side to server-side processing.
Previously, the datatable was initialized but not populated until an external event fired (which fetched and loaded the appropriate data fired the table draw).
The basic process of using table.ajax.url(newUrl).load(); is working for loading the new data; however, when the table is initialized it immediately attempts to load data via the ajax property. I have found a work-around in defining an empty json payload to initially load, but this feels like a hack.
What is the appropriate way to prevent a server-side table from immediately loading data?
Replies
The
deferLoading
option is used with server side processing to stop the initial load.Kevin