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

RadGridView and RadDataPager with a lot of data...

3 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabiana
Top achievements
Rank 1
Fabiana asked on 06 Jul 2010, 07:13 PM
Hello support!!

I have one question:

1) I was using RadTreeListView with loadOnDemand. Perfect for me, because in my database ( I am using WCF), I have 1.0000000000000000000000 of items, but with loadOnDemand, I was loading step by step... I loaded 100 items by step, after click in some node, I was loading more 100 items....

2) Now I am using RadGridView, with RadDataPager... And I will show just 100 items by page, as I was doing in RadTreeListView loadOnDemand.

3) But to show  correct pages numbers in RadDataPage, should  I set RadDataPage "Source property", with these 1.0000000000000000000000 of items ? 

4) Is there a way to configure RadDataPage page numbers with a total of items ( without set Source property) , but load by steps whem pageIndex is changing ?

Thanks!!

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Jul 2010, 07:06 AM
Hello,

 Indeed you can configure everything in the pager. You can check for example this demo for more info about how to page endless collection. 

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fabiana
Top achievements
Rank 1
answered on 07 Jul 2010, 11:28 AM
I saw this example, but isnĀ“t what I want to do...

 I would like to  perform custom paging via WCF service. I have RadDataPager connected to RadGridView. I want to pass actual PageIndex and PageSize to my WCF service and this service should return only rows for actual page. But I need to be able to list through all the pages using RadDataPager ( appear, page 1, page 2....page 100000), but just load items in grid by page
Is it possible to set number of pages in RadDataPager programatically?
0
Vlad
Telerik team
answered on 07 Jul 2010, 12:00 PM
Hi,

Indeed you need custom IPagedCollectionView - you can check also the application attached to this blog post.

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Fabiana
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Fabiana
Top achievements
Rank 1
Share this question
or