RadGridView ItemsSource being updated in ViewModel (Using Dispatch) but Grid is still not updating.

1 Answer 32 Views
EntityFrameworkCoreDataSource (.Net Core) GridView
J.W.
Top achievements
Rank 2
J.W. asked on 31 Aug 2021, 01:31 AM | edited on 31 Aug 2021, 01:31 AM

I'm using MVVM and I'm trying to show a grid that has an ItemsSource of an IList<object>. THe IList object does ... eventually ... empoly a base model that uses INotifyPropertyChanged so any change SHOULD be bubbling to the surface.

This IList is updated and modified in the ViewModel and I guessed it was on a different Thread, after some research, so I tried using the Dispatcher in order to have it trigger any updates. But still nothign in the GUI is changing.

The list is updating async but then the Grid is never showing the changes. 

Any ideas would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 01 Sep 2021, 09:44 AM

Hello Jon McKInley,

I have prepared a sample project following the MVVM pattern, but I could not reproduce the mentioned behavior. The data grid gets updated, as well as the collection inside the ViewModel.

That said, I have attached the mentioned project, so could you edit it to match the behavior present on your side?

Regards,
Stenly
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

J.W.
Top achievements
Rank 2
commented on 01 Sep 2021, 03:01 PM

Hi Stenly, same answer as in the ticket. Had a bug way down deep of one of the async methods. Figured it out so TY very much!
Tags
EntityFrameworkCoreDataSource (.Net Core) GridView
Asked by
J.W.
Top achievements
Rank 2
Answers by
Stenly
Telerik team
Share this question
or