We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60fb1c9 + 9b863fc commit 6ed0827Copy full SHA for 6ed0827
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 && !cell.editMode) {
42
cell.editMode = true;
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