We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0856b5 commit 030f779Copy full SHA for 030f779
1 file changed
src/app/grid/grid-editing-excel-style/grid-editing-excel-style.component.ts
@@ -16,6 +16,7 @@ export class GridExcelStyleEditingComponent implements OnInit {
16
public grid: IgxGridComponent;
17
18
public data: any[];
19
+ public shouldAppendValue = false;
20
21
public ngOnInit(): void {
22
this.data = DATA;
@@ -40,7 +41,12 @@ export class GridExcelStyleEditingComponent implements OnInit {
40
41
if (cell && !grid.crudService.cellInEditMode) {
42
grid.crudService.enterEditMode(cell);
43
cell.editValue = event.key;
- }
44
+ this.shouldAppendValue = true;
45
+ } else if (cell && cell.editMode && this.shouldAppendValue) {
46
+ event.preventDefault();
47
+ cell.editValue = cell.editValue + event.key;
48
+ this.shouldAppendValue = false;
49
+ }
50
}
51
52
if (key == 13) {
0 commit comments