Declined
Last Updated: 13 Apr 2021 08:09 by ADMIN
Robert
Created on: 06 Apr 2021 10:43
Category: Grid
Type: Feature Request
1
INotifyPropertyChanged

The grid should support INotifyPropertyChanged for the objects in the grid, i.e. if the data object implements INotifyPropertyChanged and a property value changes, the corresponding cell value in the grid should also change.

2 comments
ADMIN
Marin Bratanov
Posted on: 13 Apr 2021 08:09

Since we haven't had any reports of problematic behavior for a week after this example, I am going to go ahead and mark this as "Declined". The basic scenario works when implemented correctly by the app, and if the grid were to handle the INotifyPropertyChanged of the collection, it would result in far too many re-renders for good performance and we don't want to do that.

 

Regards,
Marin Bratanov
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/.

ADMIN
Marin Bratanov
Posted on: 06 Apr 2021 16:43

Hi Robert,

The re-render should already happen because the framework monitors the properties and fields. Below is an example of how that works as expected for me. You can also force the grid to update the data as explained in this documentation article: Grid - Refresh Data.

If these don't work for you, please provide some more detail on the problem. At this stage, handling the NotifyPropertyChanged is likely to just add a lot of overhead and deteriorate the performance of the component.

Regards,
Marin Bratanov
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/.