Hi Sahal,
Greetings from Syncfusion support.
You can get the rowData in the contextMenuClick event of Grid.
Refer the below code example.
[app.component.html]
<ejs-grid [dataSource]='data' id="gridcomp" (contextMenuClick)="contextMenuClick($event)" allowPaging='true' allowExcelExport='true' allowPdfExport='true' allowSorting='true'
[contextMenuItems]="contextMenuItems" [editSettings]='editing'>
<e-columns>
-----
</e-columns>
</ejs-grid>
--------------------------------------------------------------------------------------------------------
[app.component.ts]
export class AppComponent {
----
contextMenuClick(args) {
console.log(args.rowInfo.rowData); // You can get the target row data in this argument.
}
}
|
Refer the help documentation.
Regards,
Thavasianand S.