Programmatically refresh/update ListView

3 posts, 0 answers
  1. Gerry
    Gerry avatar
    25 posts
    Member since:
    Jan 2017

    Posted 27 Feb Link to this post

    Is there a way to programmatic way to cause a RadListView to refresh itself? 

    When I navigate back to a page with a RadListView, I need the page to update. I tried overriding OnAppearing to trigger the update.

    I have a ObservableCollection<T> in a VM class that inherits from NotifyPropertyChangedBase, and I call OnPropertyChanged on the VM. Even though the data in the ObservableCollection has changed, I can't get the ListView to update.

    Any hints?

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1237 posts

    Posted 02 Mar Link to this post

    Hello Gerry,

    If the ItemsSource of the RadListView is bound in TwoWay mode and the underlying collection is ObservableCollection our component should be automatically updated whenever the collection changes. Could you please share some implementation details? How exactly the RadListView is defined on your page and how is your collection updated? 

    We are looking forward to hearing from you.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Gerry
    Gerry avatar
    25 posts
    Member since:
    Jan 2017

    Posted 03 Mar in reply to Pavel R. Pavlov Link to this post

    Thanks I got it working
Back to Top