|
<e-column field='CustomerID' headerText='Employee ID' width='125' textAlign='Right'>
<ng-template #template let-item>
<input class="e-input e-small " type="text" (blur)="onBlur()" (focus)="onFocus()" [(ngModel)]="item.CustomerID"
(change)="changeTextVal(item,$event,'CustomerID')" >
</ng-template>
</e-column>
<e-column field='CustomerName' headerText='Customer Name' width='120'>
<ng-template #template let-data>
<input class="e-input e-small " type="text" (blur)="onBlur()" (focus)="onFocus()" [(ngModel)]="data.CustomerName"
(change)="changeTextVal(item,$event,'CustomerName')" >
</ng-template>
</e-column>
onFocus(args) {
this.grid.keyConfigs.rightArrow = "";
this.grid.keyConfigs.leftArrow = "";
this.grid.keyConfigs.ctrlPlusA = "";
}
onBlur(args) {
this.grid.keyConfigs.rightArrow = "rightarrow";
this.grid.keyConfigs.leftArrow = "leftarrow";
this.grid.keyConfigs.ctrlPlusA = "ctrl+A";
}
|
|
onFocus(args) {
(this.grid as any).keyConfigs.rightArrow = "";
(this.grid as any).keyConfigs.leftArrow = "";
(this.grid as any).keyConfigs.ctrlPlusA = "";
}
onBlur(args) {
(this.grid as any).keyConfigs.rightArrow = "rightarrow";
(this.grid as any).keyConfigs.leftArrow = "leftarrow";
(this.grid as any).keyConfigs.ctrlPlusA = "ctrl+A";
}
|