datatables .draw() without ajax call

datatables .draw() without ajax call

babablacksheepbabablacksheep Posts: 41Questions: 23Answers: 0

Dear Allen,
We are using custom controls for datatables which involve column turning on/off and many others like bringing table to fullScreen and so on with fixed headers.

So everytime tables go in fullscreen for example or comes back from full screen I need to call .draw() to adjust columns.
But .draw() always triggers ajax call since it is ajax based table.

Please provide a way to call .draw() which should just draw table with existing data. AJAX call seems server intensive here for no reason. same goes for column turning on off.

There should be a way to call .draw() just for the purpose of table adjustement as is.

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    I presume that you are using serverSide. If so, then yes, a draw() call will always load new data from the server. There is no way around that when in server-side processing more I'm afraid.

    Allan

This discussion has been closed.