I'm using a RadListview with RadDataPager and it's working fine.
Now, I need to create hyperlinks to items which may be in any page of the RadListView. How can I specify the wanted item ID to display to the listview and letting it opens the right page containing it ?
1 Answer, 1 is accepted
answered on 02 Sep 2010, 11:21 AM
When paging is enabled for the RadListView control, the RadListView is aware only for the records displayed on the current page. Therefore to achieve your goal, you can loop through the items on the current page and see if there is the desired item. If not, then change the CurrentPageIndex of the RadListView and loop again through its items and so on, until you get to the proper page.
Another option is to find the desired record in the RadListView data source and calculate on which page it would appear in the RadListView. Then set the CurrentPageIndex and rebind it.
Give it a try and let me know if any questions arise.
All the best,
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