Posted 16 February 2023, 7:11 am EST
Hi,
I am using angular 9 and the Wijmo version is 5.20202.699
Here is part of the code
<wj-flex-grid #flex [selectionMode]=“‘Row’” [itemsSource]=“data” [frozenColumns]=“1” [headersVisibility]=“‘All’” [ngStyle]=“{‘height’: flexHeight}”(cellEditEnded)=“onCellEditEnded($event)”>
<wj-flex-grid-column header=“‘Product #’” [binding]=“‘productId’ [name]=”‘productId’" [width]=“175” [isReadOnly]=“false”>
<ng-template wjFlexGridCellTemplate [cellType]=“‘CellEdit’” let-cell=“cell”>
<input type=“text” [(ngModel)]=“cell.value” style=“width: 100%”/>
…
<ng-template wjFlexGridCellTemplate [cellType]=“‘Cell’” let-cell=“cell”>
<div [ngClass]=“columnClass(cell.item)”>{{cell.item.productId}}
The issue right now I am facing is when the user key in the column Product # the value will change as expected. When the user deletes the input field and deletes all digits of the value the column does not change as expected.
For example, if I type P1111, the value becomes P1111. Then I double-click the column and delete 2 digits of the value and it changes to P11. Then, I delete all digits of P11, and when I leave the edit mode, the value stays P11.
My question now is what should I do to let it be able to delete all digits and clear the value for the user to operate by keyboard?
Thank you
Bob