Sync with RadDataFilter

2 posts, 1 answers
  1. Guru
    Guru avatar
    112 posts
    Member since:
    Jul 2011

    Posted 28 Jul 2011 Link to this post

    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...
  2. Answer
    Yavor Georgiev
    Yavor Georgiev avatar
    982 posts

    Posted 29 Jul 2011 Link to this post

    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.

    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!

Back to Top