This is a migrated thread and some comments may be shown as answers.

Why use QueryableCollectionView?

3 Answers 394 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 27 May 2012, 04:15 PM
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?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 May 2012, 06:56 AM
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 >>

0
Todd
Top achievements
Rank 1
answered on 28 May 2012, 04:49 PM
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
0
Vlad
Telerik team
answered on 29 May 2012, 06:27 AM
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 >>

Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Todd
Top achievements
Rank 1
Share this question
or