How to keep scroll position of jumplist?

4 posts, 1 answers
  1. ELRaymond
    ELRaymond avatar
    9 posts
    Member since:
    Nov 2012

    Posted 23 Jan 2013 Link to this post

    Page A includes a RadJumpList.

    User selects an item from that list and we push a new page to navigationservice.

    We press back button to return to the previous page. Naturally we loose the position of the RadJumpList.

    I want to auto-scroll to the radjumplist position that i save in NavigatingFrom function.

    What is the best way to do this?
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 23 Jan 2013 Link to this post

    Hello Cahit,

    Thanks for writing.

    This happens because you're rebinding the JumpList to another source when going back from the previous page. If you are navigating away from a page using the NavigationService's Navigate method, the previous page remains in memory, i.e. the scroll position of the JumpList remains intact unless you change the items source.

    Make sure that you do not rebind the control to avoid this behavior.

    Greetings,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. ELRaymond
    ELRaymond avatar
    9 posts
    Member since:
    Nov 2012

    Posted 24 Jan 2013 Link to this post

    Thank you this solved my problem and what should i use if i want to reopen that very scroll position when the application restarts? (closed completely) ( is there a better way than BringIntoView ?)
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 25 Jan 2013 Link to this post

    Hi Cahit,

    Thanks for writing back.

    You should use the BringIntoView method. What you need to do is somehow store the item which, let's say, is top most at the moment when you are closing the application and repositiong the JumpList so that it shows again when reopening the application.

    All the best,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner