DOM data source + client-side processing + AJAX updates
DOM data source + client-side processing + AJAX updates
I want my table to have the following properties:
- Initial data sourced from the DOM
- Sorting, filtering done by the client
ajax.reload()
gets a fresh copy of the data and replaces existing data (triggered by clicking a button)
This combination seems not supported?
This is my configuration: http://debug.datatables.net/ifigax
My problem in particular: when the ajax
option is initialized with a function and serverSide
is false
then DataTables will call the AJAX function for the initial data (first draw). I don't want this to happen because the DOM provides the initial data.
It doesn't help if I set deferLoading
to a non-negative number. The call will still happen for the first draw.
If I change serverSide
to true
then I do get the behavior that I want (no call until second draw) but then I lose client-side processing.
Can it be done?