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

Dynamic grouping and sorting

1 Answer 76 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.
Kamil
Top achievements
Rank 1
Kamil asked on 24 Sep 2013, 07:43 PM
Hi,
I have problem with automatic refreshing my jumplist. My observablecollection throws NotifyCollectionChangedAction.Replace when item changes. If I have group descriptors changed item lands on the end of group. In the normal list or jumplist without group descriptor item stays on the same place. How to achieve that in jumplist when I have group descriptor ? Performance is very important in this app (list will be refreshing few times in one second).

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 26 Sep 2013, 02:43 PM
Hello Kamil,

Thanks for writing.

In RadJumpList, items arrive in the groups in the order they appear in the source collection. When an item is replaced, the new item has no group and our Data Layer tries to find a group for it according to its group key. When the group is found, the item is appended at the end of the group since the logic is the same as if you have removed the old item and added a new one. In other words, when replacing an item, we cannot know that the new item will have the same group.

If you are sure that when replacing items the new ones will remain in the group of the previous one, you can simply overwrite the properties of the new item over the old one without actually modifying the source collection.

I hope this helps.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
JumpList
Asked by
Kamil
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or