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

How to show the confirmation dialog box while save the records in Normal EditMode?

Platform: JavaScript |
Control: ejGrid |
Published Date: July 30, 2018 |
Last Revised Date: July 30, 2018
Tags: editing, grid

Solution:

 

We can show the confirmation dialog box while save the records in Normal EditMode using actionBegin event of the Grid. In the actionBegin event we have rendered the ejDialog as like confirmationDialog with ok and cancel button and save the records using endEdit method of the Grid.

 

The following code example demonstrates how to show the confirmation dialog box while save the records in Normal Edit Mode.

 

1. Initialize the confirmation DialogBox and render the Grid with actionBegin event .

 

HTML

 

 

JS

 

2. Render the Grid.

 

 

 

MVC

 

 

ASP

 

ASP.NET Core

 

Angular

 

2. In this actionBegin event of ejGrid, we have check the condition with requestType as save and display the confirmation dialog. In confirmation dialogBox we have bound two ejButton as Save and Cancel. When we click on Save button we have saved the record in Grid using endEdit method of ejGrid and when we clicked on cancel button we closed the confirmation dialog.  

JS

 

Output Screenshot:

 

Sample Link:- https://jsplayground.syncfusion.com/5cehd4ry

 

 

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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