Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Webdatagrid - Data filtered event doesn't update filtered columns

Hello folks,

I need to track the currently selected column filters.

Firstly, I attach the DataFiltered event to my webdatagrid like so:

dtPlanningWin10Migration.Behaviors.Filtering.DataFiltered += Filtering_DataFiltered;

In the event I save the filters after the grid data have been filtered:

   private void Filtering_DataFiltered(object sender, FilteredEventArgs e)
               ColumnFilters        CurrentGridColumnFilters = e.ColumnFilters;

Here I store all filters that are currently selected by the user.

The issue is that if a user clicks on "Clear filter" in the filter options of the grid, the column is still present in the e.ColumnFilters list. Why hasn't it been removed automatically from the list? How can I detect if the filter column has been cleared or not?

Thanks and all the best,


Parents Reply Children
No Data