dimanche 28 juin 2015

Datatables draw() without ajax call

I'm trying to resize server-side Datatables to fit the screen size. When the window size is changed I make recalculation of new datatables height and then call draw(false) to redraw the layout of datatable.

Unfortunately, the draw() method makes an ajax call and this makes the solution unusable, because it shows "processing" and takes time to get the data on every small window change.

How to redraw datatables layout without calling AJAX? I don't need to refresh data, I just want to redraw the table.

Aucun commentaire:

Enregistrer un commentaire