I have multiple pages that contain dhtmlxgrid tables. I would like to save the filter values (filters are in header) from page to page. So if the user filters by something on one page and leaves the page, after he returns to the page, the filter should still be there (not reset) and filtered by it.
Is there a built in functionality for this? If not, would be the best way to achieve this? Cookies, session variables?
Unfortunately there is no in-built functionality.
You may save the filter values to cookies manually.
Please, try to use the getFilterElement method to get the label of the filter.
That still only works if I manually put in a delay before calling the mygrid.filterByAll(); function.
There might be different connection/computer speeds so I can’t make an accurate prediction on how long it will take to load data in different cases.
It seems like it has to be called after the data has loaded, otherwise it doesn’t work. Is there a way/function that could tell when data have finished loading?