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

Dispose items when removed

1 Answer 90 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.
Shane
Top achievements
Rank 1
Shane asked on 27 Jul 2013, 11:47 PM
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.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 01 Aug 2013, 08:06 AM
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 >>
Tags
JumpList
Asked by
Shane
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or