We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

editSettings.showConfirmDialog not working

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

1 Reply

AR Ajith R Syncfusion Team April 6, 2015 06:32 AM UTC

Hi Juned,

Thanks for using Syncfusion products.

Query : 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.

We are sorry to let you know that we are unable to reproduce your reported issue. We suspect that you have used 12.4.0.24 or Lower version of ej.web.all.min.js in your application which is the cause of the issue. We suggest you to use the latest version of ej.web.all.min.js in your application to resolve the issue. For your kind information, the showDeleteConfirmDialog has been implemented in the version of 12.4.0.30 Essential Studio release and it doesn’t support in the lower version script files.

For your convenience we have created a simple sample with your code snippet and the same can be downloaded from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/118726/DeleteConfirmDialog-1421373489.zip

Please let us know if you have any concerns.

Regards,
Ajith R

Loader.
Live Chat Icon For mobile
Up arrow icon