Posted 9 January 2025, 2:36 am EST
Hi Abhijeet,
As per our understanding, you want to apply some filters on the flexgrid initially when the grid is loaded, and you are facing the issue that when your grid component is loaded using ‘router.navigate’ method, then the filters doesn’t work properly and did not get applied on the grid when grid loads. We tried to replicate this issue on our end, tried to create the same scenarios as you described, but the issue is not replicable on our end.
You can use an approach to debug, like checking if the filterDefinition is set in the filter or not, if not set, then it might be possible that you are not using the right events to set the definition or due to some other cause definition is not applied on the filter, and if the filterDefinition is getting set properly and still filter is not applied, then there might be some internal error, you can check the grid.collectionView.filter property, we can not comment on the actual nature of the issue until we are not able to replicate it on our end.
Could you please share a small sample in which the issue can be replicated so that we can investigate it on our end and assist you accordingly?
Please refer to the attached sample in which we tried to replicate the issue. You can also modify the attached sample to replicate the issue and share it with us. In case, if there is something we missed, please let us know.
Regards
angular_flexgrid_app.zip