This is a migrated thread and some comments may be shown as answers.

RefreshData() while keeping original scrolled position

3 Answers 45 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 16 Jan 2012, 09:06 PM
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

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 20 Jan 2012, 10:13 AM
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 >>

0
Anthony
Top achievements
Rank 1
answered on 20 Jan 2012, 04:36 PM
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
0
Todor
Telerik team
answered on 20 Jan 2012, 04:50 PM
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 >>

Tags
JumpList
Asked by
Anthony
Top achievements
Rank 1
Answers by
Todor
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or