Apply radfilter expression to List

2 posts, 0 answers
  1. Mohan
    Mohan avatar
    22 posts
    Member since:
    Apr 2009

    Posted 30 Mar 2012 Link to this post


    I am trying to use the radfilter as a rules engine, where the user can create expression and check whether the object properties matches whats been defined in the radfilter.

    Is it possible to apply the radfilter expression against an collection or a single object.

    Say I have a user class with the following properties.

    Age ( Calculated from DateOfBirth)

    I want to build the expression Age > 18 and apply it against the List<User> or even an User object.


  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 04 Apr 2012 Link to this post

    Hi Mohan,

    You can see a list of RadFilter's query providers in this help article:

    As long as the object you use supports one of these syntaxes, you can use the ApplyExpressions event to capture the query in the required syntax and apply it to your collection.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top