Hi,
I'm currently using the igGrid and I want to reshresh grid data and keep user's selected filters.
Is there any way to do that ?
I know how to apply filters to the grid but not how to get current filters.
I tried to handle dataFiltered event but didn't found a way to retrieve applied filter
Here the code I used to refresh grid data
ds_status = new $.ig.DataSource({ type: "json", primaryKey: "PresentationID", dataSource: msg.d});
//Bind status grid$("#grid-status").igGrid({ dataSource: ds_status });
Thanks
Hello,
I am very glad this implementation worked for you. Is there anything else I can assist you with on the matter? Please do not hesitate to contact me with more questions.
That's perfect.Thank you for your help.
Please view the sample I have attached which implements the functionality you desire. This is done by saving the filters in the dataFiltered event and reapplying them after the data source is updated. Please let me know if you have any questions.
Thanks for your answer.Unfortunately (for me) I'm using Ignite UI 2013 Vol. 2.I checked with your sample, filters are persisent on IgniteUI 2014 Vol. 1 but not on Ignite UI 2013 Vol. 2.
After further review of your issue, I have a question for you. Are you using IgniteUI 2014 Vol. 1? You will see in the following link that after explicit calls of dataBind() in Ignite UI 2014.1, that persistence is applied for UI and data source view, meaning that the filter editors are not cleared and the data source remains filtered: http://help.infragistics.com/doc/jQuery/2014.1/CLR4.0/ . The functionality you are looking for should be happening automatically.
I created a sample which you can find attached to check persistence and was unable to reproduce the issue of this not occurring. Please let me know if this sample is an accurate model for what you are looking for. If not, please provide me with a small, isolated sample which reproduces the issue so that I can find a solution for you as quickly as possible.
I look forward to hearing from you soon.