Take Filter and apply as LINQ .Where()

3 posts, 1 answers
  1. Justin Hunter
    Justin Hunter avatar
    9 posts
    Member since:
    Jul 2010

    Posted 12 Sep 2013 Link to this post

    Hey all,

    I was wondering if there was the ability to intercept the Filtering event for the RadGrid and extract the filter and apply it as a Where(...) to a completely separate container. We require this as we have a map and we want the filtering of the grid to affect the aggregation colours of the map.

    How difficult / possible is this?
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 13 Sep 2013 Link to this post

    Hello,

    We have a public static class with extension methods called Telerik.Windows.Data.QueryableExtensions.

    It has a Where extension method for an IQueryable instance which accepts a collection of FilterDescriptors and translates them to a Where LINQ clause on the the IQueryable and returns it:

    public static IQueryable Where(this IQueryable source, IEnumerable<IFilterDescriptor> filterDescriptors)


    There are a bunch of other methods there as well.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Justin Hunter
    Justin Hunter avatar
    9 posts
    Member since:
    Jul 2010

    Posted 13 Sep 2013 Link to this post

    Thanks so much. This is exactly what I needed. :)
Back to Top