FilterDescriptors.Clear() doesn't remove the text in the filter.

1 Answer 168 Views
GridView
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Martin asked on 08 Dec 2021, 11:28 AM

I had to add : 

foreach (var column in radgrid.Columns)
            {
                column.ColumnFilterDescriptor.FieldFilter.Clear();
            }

to clear the text .. 

question: is it supposed to work like that ? 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Dec 2021, 02:01 PM

Hello Martin,

If you mean the FilterDescripors collection of RadGridView, yes, this is expected. The filtering settings done through the UI go to the ColumnFilterDescriptor property of the column. The FilterDescriptors collection doesn't work with the FilteringControl of the columns. It is a separate API that you can use in code or with an external CollectonView.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or