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

Paging

5 Answers 53 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
suman
Top achievements
Rank 1
suman asked on 09 Jun 2011, 07:01 PM

Hi,


I came to know that the Rad Pager works only for the higher level nodes (Pager doesn't know the inner hierarchy items). Is this true irrespective from the type of datasource Collection/XML ?


also, we are planning to have a vertical paging, meaning, dates as columns, first page, 30 days (30 columns), second page, next 30 days (30 columns), and it goes on (do have a certain limit on the no. of pages). Question is, is there any easy way to maintain the node expansion state when user is moving from one page to another page?


It would be one of our critical requirement, Please help up.


Thanks,

Suman

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 14 Jun 2011, 09:45 AM
Hello suman,

RadDataPager has no knowledge of hierarchy whatsoever.

It can only page a single collection, which in the case of RadTreeListView is its top-level collection.

All the best,
Ross
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
suman
Top achievements
Rank 1
answered on 22 Jun 2011, 10:21 PM
Yes, I'm aware that the RadDataPager has no knowledge of hierarchy whatsoever.

We would be binding the rows to the control page by page, mean to that, there would be buttons to display previous/next set of rows. Is there any easy/better way to maintain the scroll and node expansion state when user click on the Previous/Next buttons? 

Thanks,
Suman
0
Rossen Hristov
Telerik team
answered on 23 Jun 2011, 09:08 AM
Hi suman,

From the point of view of the TreeListView it is as though it is completely re-bound each time the pager changes the page. It is as though a new ItemsSource is coming to it each time the pager changes its page.

So I am afraid that there is no easy way to maintain the scroll and node expansion state.

All the best,
Ross
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
suman
Top achievements
Rank 1
answered on 28 Jun 2011, 06:13 PM

Please let me know your opinion on the below thought

Since we are doing a vertical paging (display first 60columns in the 1st page and the next 60 on the second page and so on) so the no. of rows is always same irrespective from the page. Display the items all expanded every time, when user clicks on the next/previous button, focus the same row what user selected in the previous page.

Your help is greatly appreciated.

Thanks,

Suman

0
Rossen Hristov
Telerik team
answered on 30 Jun 2011, 12:22 PM
Hello suman,

The only paging that RadDataPager can perform is "vertical" row paging. It is explained in great detail in my blog post. Please, read my entire post before going on.

Paging is a very simple process. You click the next page button and the next <page_size> number of records are set as the ItemsSource of the grid. Nothing more that than. No one knows about columns, rows and so on. Everything happens through the IPagedCollectionView interface. 

RadDataPager cannot scroll the grid left and right and move RadGridView's column like you have described. That is the job of the scroll-viewer.

I hope this helps.

Greetings,
Ross
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
TreeListView
Asked by
suman
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
suman
Top achievements
Rank 1
Share this question
or