- Home
- Forum
- Angular - EJ 2
- Not able to trigger the click event of grid template column
Not able to trigger the click event of grid template column
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 :
[editSettings]='editSettings'
[selectionSettings]='selectionOptions'
[allowSorting]="false"
[allowFiltering]='false'
[allowPaging]='false'
[allowResizing]='true'
gridLines='Horizontal'
[rowHeight]="gridOptions.rowHeight"
(cellEdit)="onCellEdit($event)"
(cellSave)="onCellSave($event)">
2Jul, 2021 - This issue was faced post version upgrade from 18.4.49 to 19.1.57.
SIGN IN To post a reply.
1 Reply
JC
Joseph Christ Nithin Issack
Syncfusion Team
July 5, 2021 06:41 AM UTC
Hi Komal Pandya,
Greetings from Syncfusion support.
Based on your requirement you need to trigger the click event of the template column in the Grid.
We have created a sample using the provided code example, but we were not able to reproduce the reported issue. For your convenience we have provided the sample below.
Please refer the sample, and provide the following details so that we may provide a better solution ASAP
1. Replicate the mentioned issue in the attached sample.
2. Syncfusion Package version you are using.
Regards,
Joseph I.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
KP Komal Pandya
- Jul 1, 2021 09:27 AM UTC
- Jul 5, 2021 06:41 AM UTC