I am not able to trigger the click handler of column template controls. I am following the same as above. Could you please guide ?
In the following sample,
addNewLine() and deleteLine() methods are not getting called.
I manully tried setting the focus on element in cellEdit() event.
onCellEdit(args: CellEditArgs) {
this.setFocus = args.columnObject.field;
if (args.columnObject.field === 'actionAdd' || args.columnObject.field === 'actionDelete') {
(args.cell.children[0] as any).focus();
console.log(args);
args.cancel = true;
}
}
Sample Grid :
#addNewLinesGrid id="addNewLinesGrid" [dataSource]='addNewLinesData'
[editSettings]='editSettings'
[selectionSettings]='selectionOptions'
[allowSorting]="false"
[allowFiltering]='false'
[allowPaging]='false'
[allowResizing]='true'
gridLines='Horizontal'
[rowHeight]="gridOptions.rowHeight"
(cellEdit)="onCellEdit($event)"
(cellSave)="onCellSave($event)">
field='id' headerText='Id #' width='35' isPrimaryKey='true' [visible]='true'>
field='fileNumber' headerText='File Number' editType='stringedit' [visible]='false'>
field='actionAdd' headerText='Add' width=40>
#template let-data>
src="assets/images/add_mark_ico.PNG"> field='actionDelete' headerText='Delete' width=40>
#template let-data>
src="assets/images/red_cross.PNG">
2Jul, 2021 - This issue was faced post version upgrade from 18.4.49 to 19.1.57.