Why use QueryableCollectionView?

4 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    May 2012

    Posted 27 May 2012 Link to this post

    There must be somewhere on this site that has this explanation but I just can't seem to find it. I hope someone can point me to the right direction.

    What is the advantages of using QueryableCollectionView vs say, ObservableCollection?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 28 May 2012 Link to this post

    Hello,

     With our QueryableCollectionView you have built-in support for filtering, grouping, sorting, aggregates and many more not supported in plain ObservableCollection. Furthermore the collection is ICollectionView (currency support), IEditableCollectionView (edit/update/cancel), IPagedCollectionView (paging) and the biggest advantage - IQueryable. If you provide IQueryable for QueryableCollectionView  all operations will be executed directly on your data-base server using the query provider. Of course in Silverlight this is not verry common case (you have very few options for real IQueryable) however in WPF this can be very convenient. 

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Todd
    Todd avatar
    4 posts
    Member since:
    Jun 2010

    Posted 28 May 2012 Link to this post

    The QueryableCollectionView constructor only takes an IEnumerable source parameter so how would it be used with  an IQueryable source? 
    Can you provide an example of this?

    Thanks,
    Todd
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 May 2012 Link to this post

    Hi,

    Actually IQueryable is IEnumerable;
    http://msdn.microsoft.com/en-us/library/system.linq.iqueryable.aspx 

    I suggest you to check your local copy of our WPF demos for more info. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top