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

Warning message when selected row changes

Thread ID:





123480 Mar 21,2016 04:46 PM UTC Mar 22,2016 09:05 AM UTC JavaScript 1
Tags: ejGrid
Stefano Enrico
Asked On March 21, 2016 04:46 PM UTC

I have a editable grid with editMode = normal. Is it possible to show a warning message when user changes selected row, instead of saving directly?

Venkatesh Ayothi Raman [Syncfusion]
Replied On March 22, 2016 09:05 AM UTC

Hi Stefano,

Thanks for contacting Syncfusion support.

We have achieved your requirement ”Show warning message while save the record” using actionBegin event. This event triggered for every grid action before its starts. We can get the request type and check the condition in this event. If the requestType is save then we have to open the confirmation dialog and bind the two click events for save or cancel the edit operation.
Please refer to the code example, Help document and Sample,

Code Example:


var temp=false;

              function actionbegin(e){         


              if(e.requestType == "save" && temp == false){










               function click1(args){

               var obj=$("#Grid").ejGrid('instance');








               function click2(args){








Help document: http://help.syncfusion.com/js/api/ejgrid#events:actionbegin

Sample: http://jsplayground.syncfusion.com/3q3hgtah

Venkatesh Ayothiraman.


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.

Please sign in to access our forum

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