Invalidate item in popup

4 posts, 0 answers
  1. Pol
    Pol avatar
    3 posts
    Member since:
    Mar 2011

    Posted 29 Oct 2013 Link to this post

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

    Posted 31 Oct 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Pol
    Pol avatar
    3 posts
    Member since:
    Mar 2011

    Posted 02 Nov 2013 Link to this post

    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?
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 06 Nov 2013 Link to this post

    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 >>
Back to Top