RadDataPager : Direct Link to a specific item

2 posts, 0 answers
  1. Evelyne Schreiner
    Evelyne Schreiner avatar
    20 posts
    Member since:
    Sep 2009

    Posted 30 Aug 2010 Link to this post

    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 ?

    Thank you

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 02 Sep 2010 Link to this post

    Hi Evelyne,

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top