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

Invalidate item in popup

3 Answers 40 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pol
Top achievements
Rank 1
Pol asked on 29 Oct 2013, 08:36 AM
I have a problem with invalidating items in RadListPicker 2013.3. I have following sequence:
1. User clicks on RadListPicker, popup shows up, user selects item, popup closes.
2. User renames one of items in collection bounded to RadListPicker.ItemsSource.
3. User clicks on RadListPicker again, new name is not shown in popup (old name is shown instead).
4, User selects that item. Correct new name is shown in collapsed control. So the problem is only in popup.
This problem didn't happen in previous versions (for instance in 2011.3 but I can check more recent versions if this will help you). I understand this is for a good reason (performance) but how to invalidate this? I tried various things like recreating items objects but no effect.

UPDATE: Seems that calling OnPropertyChanged("CollectionName") after recreating all items does the trick but a less work solution would be nice
.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 31 Oct 2013, 07:41 AM
Hello Pawel,

Thanks for writing.

Using the INotifyPropertyChanged interface and the PropertyChanged event is the standard way of notifying a listener that a property has changed on a given object. This is the simplest and most commonly used way. All Silverlight templates use this interface and this event to understand that your business object has changed and update its visual state accordingly.

Regards,
Deyan
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 >>
0
Pol
Top achievements
Rank 1
answered on 02 Nov 2013, 11:19 AM
Thanks for basic info but obviously this is not enough in this case as I'm using INotifyPropertyChanged and it's PropertyChanged event for both individual items displayed on list and for it's container model. Why do I have to recreate the whole collection?
0
Deyan
Telerik team
answered on 06 Nov 2013, 02:28 PM
Hello Pawel,

Thanks for writing back.

It seems that I do not correctly understand the scenario. Can you please ZIP your project and send it to me in a new support ticket with instructions so that I can directly take a look at the code and see what causes the glitch?

Thanks for your time.

Regards,
Deyan
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
ListPicker
Asked by
Pol
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Pol
Top achievements
Rank 1
Share this question
or