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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

editSettings.showConfirmDialog not working

Thread ID:

Created:

Updated:

Platform:

Replies:

118726 Apr 4,2015 10:54 AM UTC Apr 6,2015 06:32 AM UTC JavaScript 1
loading
Tags: ejGrid
Juned S
Asked On April 4, 2015 10:54 AM UTC

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

Ajith R [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;