Hello,
Thank you for reporting the issue, the reported behavior occurs because edited row remains in edit mode while the edited cell has exited from the edit mode.
We have escalated this issue to the development team for further investigation with tracking id 229996. We will notify you as soon as we get any updates.
As a workaround, changes can be tracked by committing changes on click outside cells and inside FlexGrid using following code snippet:
HTML:
<wj-flex-grid #grid [itemsSource]="data" style="height: 200px"></wj-flex-grid>
TS:
import { Component,ViewChild,AfterViewInit } from '@angular/core';
export class AppComponent implements AfterViewInit {
data = new wjcCore.CollectionView([
{ name: 'John', age: 25, birthday: new Date(1991, 5, 15) },
{ name: 'Mary', age: 30, birthday: new Date(1986, 5, 15) },
{ name: 'Peter', age: 35, birthday: new Date(1981, 5, 15) }
], { trackChanges: true });
@ViewChild('grid') grid: wjcGrid.FlexGrid;
ngAfterViewInit() {
this.grid.hostElement.addEventListener('click', (e) => {
var ht = this.grid.hitTest(e.pageX, e.pageY);
if (wjcGrid.CellType[ht.cellType] == 'None') {
this.data.commitEdit();
}
});
}
}
Hope it helps.
Thanks,
Manish Kumar Gupta