Dispose items when removed

2 posts, 0 answers
  1. Shane
    Shane avatar
    1 posts
    Member since:
    Aug 2011

    Posted 27 Jul 2013 Link to this post

    I am using a RadJumpList and included a custom user control in the datatemplate. I am binding the data to the control using the DependencyProperty.

    The problem I've notice is that when I remove a item from the MainViewModel  and then add create a new item (with default values) the user control displays the values of the old control (not the default values).

    Should the RadJumpList control dispose controls when the data items are removed? Any ideas on how to make sure that the RadJumpList does not reuse a datatemplate item control that was previously removed?

    Thanks for any help you can provide.
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 01 Aug 2013 Link to this post

    Hi Shane,

    Thank you for writing.

    If I understand correctly, you update your collection and this is not reflected in RadJumpList. If that is the case, try using ObservableCollection for your collection, so that RadJumpList is notified about collection updates. If you have a different scenario, please explain it with more details - how do you load the items, how do you update the collection, etc. A sample application that shows the undesired behavior would be most helpful.

    Please note, that you will need to open a new support ticket in order to attach an application if you want to, as this is not permitted for the public forum posts.


    Regards,
    Todor
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top