RefreshData() while keeping original scrolled position

4 posts, 0 answers
  1. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 16 Jan 2012 Link to this post

    Hello :)

    Question:
    Is there a way to call RefreshData() on RadJumpList without having it scroll to the top of the list? Or is there a way for me to adjust the scroll position after calling the RefreshData() method.

    Issue Details:
    I have a list of items, that can be edited by tapping on an item.  I make a copy of the item, to allow for reverting to the original if desired, and if the user accepts the changes I remove the original item and insert the new the item into the list (using IList.Insert() to put it in the correct position). 
    If the correct position is different from the original position, I am finding that the original item remains in the list.  As a result, it appears that the same item is in the list 2 times.

    I am currently calling RefreshData() to force the items to appear correctly.

    Thanks for your assistance,
    Ant

  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 20 Jan 2012 Link to this post

    Hello Anthony,

    Please accept my apologies for the delayed answer and thank you for your patience.

    RadJumpList automatically updates its items if the source collection is of type that implements INotifyCollectionChanged, such as ObservableCollection. This way you won't need to manually call the RefreshData method and you will not need to scroll the list.

    I hope this helps. Let us know if you need additional assistance here.

    Kind regards,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 20 Jan 2012 Link to this post

    Hi Todor,

    No worries on the delay, everyone at Telerik is always super fast and helpful :)

    I am using an ObservableCollection and removing the item on the UI thread.  So I'm not 100% sure why it isnt updating. My workaround for now is just to issue a RefreshData, however, this is not ideal/

    When I have a moment, I'll put together a sample project to show my issue.

    Thanks again,
    Ant
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 20 Jan 2012 Link to this post

    Hi Anthony,

    Yes, it would be really helpful if you could prepare a sample project that demonstrates your scenario, so we can further investigate it.

    Please, note that you will have to open a new support ticket in order to be able to attach your project.

    Regards,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top