Way to enable client sided processing, but also enable deferLoading.

Way to enable client sided processing, but also enable deferLoading.

gfong007gfong007 Posts: 7Questions: 3Answers: 0
edited May 2016 in DataTables 1.10

Hi,

Right now, deferLoading can only be enabled for server sided processing, and datatables options can not be changed once it has already been initialized.

Id like to know if there is a way to enable the features of deferLoading (to not send an ajax request for data until x event), but all future processing (like sorting, searching, etc) should be done client sided.

So in summary I'm looking for a way to enable this:

"serverSide": false,
"deferLoading": 0,

A better solution would be if there's a way to do all processing (searching, sorting, etc) client-sided, and all ajax requests for data would are controlled by one single event only; so searching or sorting will not trigger the ajax event. Only a certain event specified by me will trigger the ajax request.

Thanks.

Answers

  • allanallan Posts: 61,771Questions: 1Answers: 10,112 Site admin

    It sounds like you simply want to use rows.add() to add the extra rows to the table once you have loaded them (based on whatever event it is you need to listen for).

    Allan

This discussion has been closed.