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

Programmatically refresh/update ListView

2 Answers 991 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Gerry
Top achievements
Rank 1
Gerry asked on 27 Feb 2017, 08:39 PM

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 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 02 Mar 2017, 07:26 AM
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
0
Gerry
Top achievements
Rank 1
answered on 03 Mar 2017, 03:06 PM
Thanks I got it working
Tags
ListView
Asked by
Gerry
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Gerry
Top achievements
Rank 1
Share this question
or