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?

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

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9044 07/30/2018 07/30/2018 JavaScript ejGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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