Version

ExitingEditMode Property (EditableClientEvents)

Event fired before a cell exits edit mode.

This event is cancelable.

Syntax
'Declaration
 
Public Property ExitingEditMode As String
public string ExitingEditMode {get; set;}
Example
Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.CellEditingClientEvents.ExitingEditMode = "WDG1CellEditing_ExitingEditMode"

Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowAdding.AddNewRowClientEvents.ExitingEditMode = "WDG1RowAdding_ExitingEditMode"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.CellEditingClientEvents.ExitingEditMode = "WDG1CellEditing_ExitingEditMode";

this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowAdding.AddNewRowClientEvents.ExitingEditMode = "WDG1RowAdding_ExitingEditMode";
// The client event 'ExitingEditMode takes two parameters sender and e
// sender  is the object which is raising the event
// e is the CancelEditModeEventArgs

    function WDG1CellEditing_ExitingEditMode(sender, e) {

        if (!confirm("Are you sure you want to exit edit mode?"))

        //Cancels the 'ExitingEditMode' event
        e.set_cancel(true);
         
    }


  // The client event 'ExitingEditMode' takes two parameters sender and e
  // sender  is the object which is raising the event
  // e is the CancelEditModeEventArgs
    function WDG1RowAdding_ExitingEditMode(sender, e) {

        //Returns the cell that is entering edit mode
        var cell = e.getCell();

        //Gets referenceto the column object that contains the cell
        var column = cell.get_column();

        //Returns the key of the column
        var key = column.get_key();

        if (!confirm("Are you finished editing the  new cell under the column '" + key + "'?"))

        //Cancels the 'EnteringEditMode' event
            e.set_cancel(true);  

  }
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also