Hello,
I'm using on some column custom filtering controls. Everything works great, until I want to remove all filters on grid using method:
In the control I'm creating an ColumnFilterDescriptor object, passing the current column as constructor parameter.
Then this filter is added as follows:
When clearing FilterDescriptors collection, filter indicator on all grid columns, that uses default filter controls, shows, that filter is disabled. But on columns, that uses CustomFilterControls, filter indicator is still Active, and after clicking it- filter control is still filled with last selected filter.
Should I do it in another way?
Best regards
I'm using on some column custom filtering controls. Everything works great, until I want to remove all filters on grid using method:
this
.View.grid.FilterDescriptors.Clear();
In the control I'm creating an ColumnFilterDescriptor object, passing the current column as constructor parameter.
Then this filter is added as follows:
this
.fieldFilter.FieldFilter.Filter1.Value =
this
.PhotoStatuses.Where(s => s.IsSelected).Select(s => s.StatusValue).ToList();
if
(!
this
.column.DataControl.FilterDescriptors.Contains(
this
.fieldFilter))
{
this
.column.DataControl.FilterDescriptors.Add(
this
.fieldFilter);
}
When clearing FilterDescriptors collection, filter indicator on all grid columns, that uses default filter controls, shows, that filter is disabled. But on columns, that uses CustomFilterControls, filter indicator is still Active, and after clicking it- filter control is still filled with last selected filter.
Should I do it in another way?
Best regards