Hi,
I have set up my grid table to save gridOption on certain events (etc., Sorting, column reorder, filter).
On the document ready, I will load the stringified JSON from the localStorage, and set that as the grid option.
However, I wasn't able to get the table to load properly in a few instances.
1.) When I enter something in the searchbar, the rows will be filtered via the searchbar.
But if I do sorting to save the grid option and reload it, the following happens:
- The loaded table did not show the previous search item on the searchbar.
- The column filters (with checkbox) only show the filtered list, not the whole list.
I have to manually type in another placeholder text into the searchbar, then remove the placeholder text to "refresh" the table to get the whole list appearing in the column filter.
2.) When I filter some row via the column filter (with checkbox), the rows will be filtered.
But if I do sorting to save the grid option and reload it, the following happens:
- The column filters (with checkbox) only show filtered list, not the whole list.
- When I unselect, the table shows all the rows, but the column filter still doesn't show the whole list, only the previously preselected list.
Can you advise how to get state persistence working with searchbar and column filters with checkbox?
Thanks,
Luke