Datatables 1.10 - draw call Ajax with serverSide true
Datatables 1.10 - draw call Ajax with serverSide true
Hi again,
I'm trying to make this example work with serverSide processing : http://datatables.net/dev/knockout/
The problem I'm facing is that draw() method is calling Ajax. I fell in infinite loop (ajax -> knockout array update -> subscribeArrayChanged -> draw -> ajax -> knockout array update -> subscribeArrayChanged -> etc.)
Is there a way to reflect the newly added row without calling the ajax again ?
Thank you.
Aleks
I'm trying to make this example work with serverSide processing : http://datatables.net/dev/knockout/
The problem I'm facing is that draw() method is calling Ajax. I fell in infinite loop (ajax -> knockout array update -> subscribeArrayChanged -> draw -> ajax -> knockout array update -> subscribeArrayChanged -> etc.)
Is there a way to reflect the newly added row without calling the ajax again ?
Thank you.
Aleks
This discussion has been closed.
Replies
It could probably be done, but I don't see how it could be the simplest solution!
Allan
Anyway, is it possible to add a row without have ajax function called ?
Aleks
Not in server-side processing mode.
The whole point of server-side processing is that DataTables doesn't have the data that it doesn't need for the current display at the client-side - thus it follows that it must make an Ajax call to get any other data. There is no option to add data to the table in server-side processing mode from the client-side - its up to the server to do that.
Allan