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
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.
Ross
the Telerik team
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
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.
Ross
the Telerik team
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
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.
Ross
the Telerik team