datatable, change url using current filter

i want to change the data table url (dynamic loading, server side filter) and apply the filters to the new url also.

when i do this:

dtable.clearAll();
dtable.define(“url”, myurl);
dtable.filterByAll();

it works, but i have 2 server calls and - depending on timing - a flashing screen, because twice server calls and response happens.

what the right way to solve this?

Hello,

The first request is caused by define() usage.

Here is how to avoid initial load request:

dtable.clearAll(); 
dtable.data.url = myurl; 
dtable.filterByAll();

This solution is not very elegant, but still…

thanks. but have a problem.

when i try to reload data with this solutions every N(th) time it results no data :(((

it works without this bug using define(“url”,myUrl)