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

Grid re-renders whole row when some cell go to edit mode

1 Answer 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ultimeta
Top achievements
Rank 1
Ultimeta asked on 05 Dec 2018, 02:42 PM

TableBodyComponent.trackByFn causes whole row to be re-rendered, because before edit trackBy returns index of row and after edit trackBy returns data. In large grids with a lot of columns this may be slow. 

Currently i use this workaround to avoid such behavior - (<any>this.kendoGrid).editService.hasEdited = () => true;

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 07 Dec 2018, 09:10 AM
Hello,

The change was required because the FormControls do not remove the references from the old controls they were attached to. Thus keeping the same rows was causing the controls to be attached to multiple value accessors. We will consider exposing input for custom trackBy function.

Regards,
Daniel
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Ultimeta
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or