This is a migrated thread and some comments may be shown as answers.

Want update to grid's FilterDescriptors to be reflected in column's FilteringControl

2 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Calvin
Top achievements
Rank 2
Calvin asked on 25 Jul 2011, 11:29 PM
Is it possible for a programmatic update to the RadGridView.FilterDescriptors collection to be reflected in the column's FilteringControl?

E.g., this code doesn't get automatically reflected in the associated column's popup filter control.
  
grid.FilterDescriptors.Add(fieldName, FilterOperator.IsEqualTo, fieldValue) { MemberType = column.DataType })
- or -
grid.FilterDescriptors.Add(fieldName, FilterOperator.IsNotEqualTo, fieldValue) { MemberType = column.DataType })

But I'd like this code to update the FilteringControl thus providing the user with an alternative mechanism for filtering.

So is there a straightforward way to make that happen?

Many thanks!

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 26 Jul 2011, 07:23 AM
Hi Calvin,

You can achieve this utilizing ColumnFilterDescriptors. Please, refer to this article for more extensive information on this topic.

Kind regards,
Ivan Ivanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Calvin
Top achievements
Rank 2
answered on 26 Jul 2011, 05:10 PM
Great!  I'm not sure how I missed this (I had looked at the section of the documentation previously).  Thanks
Tags
GridView
Asked by
Calvin
Top achievements
Rank 2
Answers by
Ivan Ivanov
Telerik team
Calvin
Top achievements
Rank 2
Share this question
or