filter is not working when pushing old state back to grid
Posted: Thu Dec 12, 2024 4:32 pm
by dsingh7
Hi Team,
In my grid implementation I am storing grid state to backend and when user coming on the same grid I am pushing grid state and then after grid load pushing data to the grid.
So in above config I am passing filterFn to bypass grid filters and what ever data is there in column display regardless of filter.
This is working fine when user select filter on grid. Also this filter and sorting state is stored to backend. When user loading this grid again then data is not rendering in grid. this is happening for this dropdown type column.
if I remove and select another value for this filter then it starts working again.
Please suggest what I am doing wrong here
Re: filter is not working when pushing old state back to grid
Posted: Thu Dec 12, 2024 4:45 pm
by alex.l
Hi,
I am afraid, it's not clear what to do by description you shared. Please attach video with steps to reproduce.
Re: filter is not working when pushing old state back to grid
Posted: Thu Dec 12, 2024 4:54 pm
by dsingh7
So with above configuration when I am pushing old state to grid, data is not rendered in grid.
When I change any value in the given filter then it starts rendering data in grid.
Re: filter is not working when pushing old state back to grid
Posted: Thu Dec 12, 2024 6:39 pm
by alex.l
We need a full picture.
Am I right you keep store data in localStorage? Please show us how do you save data? How did you setup StateManager?
Please share runnable test case and steps to reproduce. It will help us to go forwards?
Re: filter is not working when pushing old state back to grid
Posted: Fri Dec 20, 2024 12:59 pm
by dsingh7
Hi Alex,
Please go through the video. I have applied filter on one dropdown column. then navigating to some other screen. then going back to same screen again.
So in back ground when filter applied I have stored grid state. and when user come back on the screen again then I push the saved state to grid again. This time grid is not loading row to grid but filter is persist. You can see the response in browser's network tab in video.