This question is locked. New answers and comments are not allowed.
Hi,
In my Silverlight 4 application (Telerik v 2012.2.607) I programatically loop through all FilterDescriptors for my grid to find if there is a filter set for a given columnName. If so, I remove the FilterDescriptor for that column from the collection. This works fine, the filter is removed from the grid and all rows are displayed. But if then the user opens the Filter Dialog Box (by clicking the column filter icon), the previous filter selection is still displayed. See attached screen shot. It shows there are no filters set (the column header icon is "off") but still the old value is ticked in the Filter Dialog.
How do I clear the selections in the Filter Dialog Box for a column when I have removed the FilterDescriptor for that column in code?
The code to remove the filter descriptor for a given column name is given below:
In my Silverlight 4 application (Telerik v 2012.2.607) I programatically loop through all FilterDescriptors for my grid to find if there is a filter set for a given columnName. If so, I remove the FilterDescriptor for that column from the collection. This works fine, the filter is removed from the grid and all rows are displayed. But if then the user opens the Filter Dialog Box (by clicking the column filter icon), the previous filter selection is still displayed. See attached screen shot. It shows there are no filters set (the column header icon is "off") but still the old value is ticked in the Filter Dialog.
How do I clear the selections in the Filter Dialog Box for a column when I have removed the FilterDescriptor for that column in code?
The code to remove the filter descriptor for a given column name is given below:
gridKolName = selCol.ElementValue.ToString();
foreach (IColumnFilterDescriptor desc in MasterGrid.FilterDescriptors)
{
col = (
GridViewDataColumn)desc.Column;
filterName = col.Header.ToString();
if (filterName == gridKolName)
{
MasterGrid.FilterDescriptors.Remove(desc);
break;
}
}