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

Sync with RadDataFilter

1 Answer 37 Views
This is a migrated thread and some comments may be shown as answers.
Guru
Top achievements
Rank 2
Guru asked on 28 Jul 2011, 10:07 PM
Is it possible to synchronize a datafilter and expression editor in code-behind?

Goal: give user option to user eith to filter gridview.

So the grid view will be bound to observablecollection<T> and the 2 filters will modify the grids filterdescriptors.
It would be nice if they are going from one filter to the other if the somehow reflect each others previous states...

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 29 Jul 2011, 06:58 AM
Hello Zack,

 I'm afraid that this scenario is not supported, as RadDataFilter uses the regular FilterDescriptor class, which filters on the Member-Operator-Value pattern, whereas filtering RadGridView with a RadExpressionEditor uses the FilterDescriptor<T> class, which filters using a LINQ expression directly. Unfortunately, these two data structures are incompatible.

Regards,
Yavor Georgiev
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!

Asked by
Guru
Top achievements
Rank 2
Answers by
Yavor Georgiev
Telerik team
Share this question
or