Completed
Last Updated: 08 Mar 2023 10:07 by ADMIN
Release 4.1.0 (15/03/2023)
Meindert
Created on: 18 Jan 2023 09:17
Category: Grid
Type: Bug Report
2
Triggering edit mode leads to re-renders in other cells
Triggering edit mode leads to re-renders in other cells. 
2 comments
ADMIN
Radko
Posted on: 08 Mar 2023 10:06

Hello all,

What we can improve in this regard is to override the behavior of the ShouldRender method of the content cell. Through this we aim to re-render only content cells that have actually changed. However, there is a caveat to this approach - templated cells will still always re-render, as they accept arbitrary markup, and as such, we have no way of knowing if and when they should change(e.g. their content might be dependent on another cell content, or perhaps on something external entirely).

As for the behavior itself - a re-render is to be expected by default. Given the complex structure of the Grid, many internal components, including the content cells, accept non-primitive parameters. The default framework behavior is for such cases to always trigger a re-render. This behavior, along performance best practices, are covered in the following article: Blazor performance best practices.

Regards, Radko Stanev 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/.

Yanislav
Posted on: 06 Feb 2023 12:58

The problem also appears if you use the TreeList component. 
https://blazorrepl.telerik.com/cdkQkAPc57i9dT3C58