Ajax call when adjust column size
Ajax call when adjust column size
Fleky
Posts: 8Questions: 2Answers: 0
Hi,
i'm using datatables with ajax server side processing. Behind this i have several events which example adjust column width size on click event (maximalize/minimize datatables results) and etc..
The problem is everytime when i call table.columns.adjust().draw(false) the ajax request goes to server site which is not neccessary. I don't need to call ajax again when adjusting column size. Is it possible to turn this of (not send request to server)? if yes how?
Thanks,
Tomas
This discussion has been closed.
Answers
Hello guys,
i removed action ajdusting columns when changing the size of table and the datatables ajax is not repetabely called which was my goal (performance) :)
I realized that my table behaves properly even if columns are not adjusted :)
Tomas
Good to hear you resolved the issue.
If you are using server-side processing (which it sounds like you are) then whenever you
draw()
the table, it will always make an Ajax request to the server. That is a fundamental aspect of server-side processing.Allan