Dynamic grouping and sorting

2 posts, 0 answers
  1. Kamil
    Kamil avatar
    2 posts
    Member since:
    Nov 2012

    Posted 24 Sep 2013 Link to this post

    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).
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 26 Sep 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top