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

Refresh Userinterface with Items

2 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 08 Apr 2020, 01:04 PM
Hi,
after we created a new element in our binded List<> for the GridView this elemt doesn't show up in the UI. How can we trigger a refresh or something? Does this need to do manually, or should this work automatically? After reloading the complete page the missing elements show upcorrently.

Best regards,
Thomas

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 10 Apr 2020, 11:28 AM

Hello Thomas,

To ensure that a newly added item in the ItemsSource is shown in the UI, use a INotifyCollectionChanged implementation for the ItemsSource property. For example an ObservableCollection<T>, instead of a List<T>.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Thomas
Top achievements
Rank 1
answered on 17 Apr 2020, 11:47 AM

Hi Martin,

thanks, this was exactly what we where looking for. :-)

Best regards,
Thomas

Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or