Hello,
I am working on a grid component and I would like to enter edit mode (edit button is outside of the grid) then turn every row in the grid to edit table.
There is only one column is allowed for editable and it's a date field. So, I now create an edit template.
<
ng-template
kendoGridEditTemplate let-dataItem
let-formGroup
=
"formGroup"
>
<
kendo-datepicker
[formControl]="formGroup.get('actionDate')"
[min]="mindate" [max]="maxdate"
class
=
"calendarstyle"
></
kendo-datepicker
>
</
ng-template
>
When I add an onclick to the button outside the grid, I am using this.grid.editRow(index, formgroup) in order to make the row editable.
this
.grid.editRow(rowIndex,
this
.formGroups[rowIndex]);
However the editRow makes/fires an DataStateChangeEvent and it makes the scroll bar moves.
The story behind is that I have a tons of records with no actual page and I am using data state change to just skip rows.
public dataStateChange(state: DataStateChangeEvent): void {
this
.gridView = process(
this
.data,
this
.state);
}
Is there anyway to make the multiple editable rows better?
Can you also suggest the life cycle of the grid / state changes, please?