Hi team,
I have enabled showDeleteConfirmDialog:true on editSettings for ejGrid but it doesn't seem to be working. On selection of record and on clicking on delete confirmation dialog is not opening and there seems to be error Uncaught TypeError: Cannot read property 'find' of null at line 10 of ej.web.all.min.js.
Code:
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
enablelAltRow: true,
actionComplete: "complete",
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, editMode: ej.Grid.EditMode.Dialog,
showDeleteConfirmDialog: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] },
columns: [
{ field: "OrderID", isPrimaryKey: true, headerText: "Order ID", textAlign: ej.TextAlign.Right, validationRules: { required: true, number: true }, width: 90 },
{ field: "CustomerID", headerText: 'Customer ID', validationRules: { required: true, minlength: 3 }, width: 90 },
{ field: "Freight", headerText: 'Freight', format: "{0:C}", textAlign: ej.TextAlign.Right, editType: ej.Grid.EditingType.Numeric, editParams: { decimalPlaces: 2 }, validationRules: { range: [0, 1000] }, width: 75 },
{ field: "ShipCountry", headerText: "Ship Country", width: 85 },
{ field: "ShipCity", headerText: 'Ship City', width: 90 }
]
});
Am i missing any import or any thing else needs to be done.
Thanks,
Juned S