I am using an IgGrid in an angular2 app and setting the dataSource when an observable is populated. My issue is that when I change dataSource of the table while the table repopulates and the filters are cleared the UI still shows the previous filter values. I've set the persist property to false
features: [ { name: "Filtering", persist: false } ]
Do I need to specifically call bind() on the grid to trigger the clearing of the text boxes? Is the a simple way of programmatically cleering the fields?
Hello Alan,
Take your time and when you have a working sample illustrating the behavior on your side please feel free to get back to me.
Looking forward to hearing from you.
Thanks for the reply. I've another bigger issue which I need to raise first then I will come back to this one as it's not critical.
Thank you for posting in our community.
By design if a new data source is set (and persist filtering option is set to false) filtering expressions should be cleared out of the box without calling any additional methods. Since you mentioned that in your scenario filtering conditions remain after setting the new data source I will need a small, isolated sample where the issue is reproducible. Please remove any dependencies and attach the working sample which I can run and debug on my side. This is going to be highly appreciated and will help me in finding the root cause of this matter.