Posted 14 November 2020, 10:35 pm EST
Hi,
I’m using flexgrid 5.20202.699 on angular 9, on a hierarchical collection of 2 levels.
I’ve now discovered, after much trouble, that the 'loadedRows ’ event is being called after every ‘Delete’ or ‘BackSpace’ keypress in the grid.
is this intentional? is this configurable in any way?
here’s my grid html:
<wj-flex-grid
#flex
[anchorCursor]="true"
[childItemsPath]="['opportunities', 'products']"
[itemsSource]="dataSource"
(loadedRows)="onLoadedRows(flex, $event)"
(initialized)="initializeGrid(flex, this)"
(beginningEdit)="onBeginningEdit(flex, $event)"
(cellEditEnding)="onCellEditEnding(flex, $event)"
(formatItem)="onFormatGridItem(flex, $event)"
[autoGenerateColumns]="false"
[frozenColumns]="1"
[frozenRows]="2"
[headersVisibility]="'Column'"
style="height: 90vh"
[allowResizing]="'Columns'"
>
</wj-flex-grid>
and the attaching of the rellevant event handler:
onLoadedRows(flexGrid: FlexGrid, e: CancelEventArgs) {
this.gridConfigService.onLoadedRows(flexGrid, e, this.gridCollapseLevel);
}
Thanks!