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

[Solved] QueryableCollectionView Question

1 Answer 118 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.
Kevin
Top achievements
Rank 1
Kevin asked on 24 Oct 2009, 06:41 PM
Hello,

I have a web service that returns only one page of data at a time.  We pass in startingIndex, pageSize, sortingExpression and filterCriteria to receive a page of records along with the total number of records that match the filterCriteria (to allow for paging).  I'm looking to see if we could migrate this code over to use the Telerik GridView.  Based on some searching, it looks like the QueryableCollectionView might be what I want to use, but it appears I'm unable to set the TotalItemCount.  Is this a scenario that is supported by the GridView in release 2009 Q3 Beta?  If so, could you please provide details on how I would wire up the GridView to a provider that returns a single page of data at a time?

I realize the DomainDataSource from RIA Services provides this type of functionality, but we're not looking to use RIA Services currently as we're on a different timeline.

Thanks for any advice!
Tom

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 26 Oct 2009, 07:32 AM
Hello Tom,

Currently the only way to set the TotalItemCount of the QueryableCollectionView is to derive from it and override this property.

We will have improvements in the official Q3 release which illustrates how to use DataPager control along with RadGridView and QueryableCollectionView. We are also going to implement build-in paging functionality in RadGridView for the next service pack release after Q3.

Kind regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or