Get the filtered collection from a QueryableCollectionView

4 posts, 0 answers
  1. Giuseppe Marchi MVP
    Giuseppe Marchi MVP avatar
    5 posts
    Member since:
    Oct 2012

    Posted 26 Aug 2011 Link to this post

    Hi all.
    I'm using the QueryableCollectionView to filter mu RadChart. With this class i'm able to retrieve the original collection of data (using the SourceCollection property). But, how i can retrieve the filtered collection of data?
    Thanks in advance
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 29 Aug 2011 Link to this post

    Hi Giuseppe,

    Since the QueryableCollectionView collection is the actual view as it name implies, it is the de facto filtered collection.

    So for example, if you add a FilterDescriptor to filter the QueryableCollectionView collection, if you enumerate it it will contained only the items that pass the filter. That is why its name ends in *View.

    I hope this makes sense.

    Best wishes,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
  4. Sudhir
    Sudhir avatar
    1 posts
    Member since:
    May 2011

    Posted 05 Feb 2014 Link to this post

    No it doesn't make sense. Can you point to an example where I can use Filter property of QueryableCollectionView?
  5. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 10 Feb 2014 Link to this post


    I am afraid setting Filter property for QueryableCollectionView is not currently supported. You should use the FilterDescriptors collection instead. 

    For example you can add a FilterDescriptor like so:
    queryableView.FilterDescriptors.Add(new FilterDescriptor("Country", FilterOperator.IsEqualTo, "England"));

    I hope this helps.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top