I need to be notified about every change in filter settings. When filters are changed, events RecordFilterChanged and RecordFilterChanging are correctly raised. But when filters are cleared by clicking on Clear Filter button (be it button for filter cell or for whole filter row), filters are cleared, data updated, but events are not raised.
I have tried to bind to this.XamDataGrid1.FieldLayouts[0].RecordFilters.CollectionChanged event, but it is triggered only when adding new filters, not when filters are cleared.
Thanks
Milan
Hello Milan,
This appears to have been addressed in the latest Service Release of NetAdvantage for WPF Volume 1. You can download the Service Release from the My Keys & Downloads section here:
https://www.infragistics.com/Membership/Default.aspx?panel=Downloads
Hello Aaron,
Can I download Service Release if I only investigate features of NetAdvantage for WPF with trial license? I am responsible for selection of components for new WPF project and NetAdvantage is probably the winner, but ability to catch events around filtering is very important for us...
I will be happy to provide you with the latest service release for .Net Advantage for WPF v9.1 so that you can continue your evaluation of our product.
I will create a support case on your behalf and provide you with the location of the service release.
Please let me know if you have further questions on the matter through the support case or here in the forum.
Hi, I'm also testing your components, and maybe in the next week we'll be buying it, but in the same case of the original post, I need to verify if when clearing the filter we can catch some event, your DataGrid is one of the most important controls we care about, and it accomplish many of our requirements.
Can you help us, to download the Service Release, until we finish our testing period?.
Thanks.
Marco Rojas.
Hello Marco,
Thank you for your post. I have been looking into and I created a sample project for you with the functionality you want. Basically I handled the DataRecordPresenter’s and FilterCellValuePresenter’s Loaded events and add handler for the Clear Buttons. In that handler a checked whether the sender is the ClearAll Button and if not I got the sender’s FilterCellValuePresenter, so I can know which Field’s Filters are cleared.
Feel free to write me if you have further questions.