Hi Duncan,
Thanks for Contacting Syncfusion support.
We have analyzed your requirement and we can get the selected row and its data through “context click” event of the ejGrid.
Please find the code example.
$("#Grid").ejGrid({ dataSource: window.gridData, allowPaging: true, editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, }, toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add, ej.Grid.ToolBarItems.Edit, ej.Grid.ToolBarItems.Delete, ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel] }, contextMenuSettings: { enableContextMenu: true, contextMenuItems: [], customContextMenuItems: ["Custom Context"] },//Custom Context menu contextClick: function (args) { if (args.text == " Custom Context ") var rowid = this.selectedRowsIndexes[0];//get the row id var selectedrecordsdata = args.model.selectedRecords;//get the selected records data }, columns: [ . . ] });
|
Please refer the following UG link for more information.
For your reference we have created a JS playground sample.
Please let us know if you have any concern.
Regards,
K.Karthick.