Version

ExitedEditMode Property (EditableClientEvents)

Event fired after a cell has exited edit mode.
Syntax
'Declaration
 
Public Property ExitedEditMode As String
public string ExitedEditMode {get; set;}
Example
Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.CellEditingClientEvents.ExitedEditMode = "WDG1CellEditing_ExitedEditMode"

Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowAdding.AddNewRowClientEvents.ExitedEditMode = "WDG1RowAdding_ExitedEditMode"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.CellEditingClientEvents.ExitedEditMode = "WDG1CellEditing_ExitedEditMode";


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

  function WDG1CellEditing_ExitedEditMode(sender, e) {

      var wdg = $find("WebDataGrid1");

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

      // Returns the cell's value
      var value = cell.get_value();
      
      //Gets reference to the row object that contains the cell 
      var row = cell.get_row();

      //Returns index of the row
      var index = row.get_index();

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

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

      window.status = "The new value in the cell with row index '" + index + "' under column '" + key+ "' is : " + value;  
  }


// The client event 'ExitedEditMode' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the EditModeEventArgs
  function WDG1RowAdding_ExitedEditMode(sender, e) {

      //Returns the cell that has entered edit mode
      var cell = e.getCell();

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

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

      //Gets the value in the cell
      var value = cell.get_value();

      window.status = "You have entered '" +value + "' in the new cell under the column '"+key+"'."; 
  }
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