Version

EnteredEditMode Property (EditableClientEvents)

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

Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowAdding.AddNewRowClientEvents.EnteredEditMode = "WDG1RowAdding_EnteredEditMode"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.CellEditingClientEvents.EnteredEditMode = "WDG1CellEditing_EnteredEditMode";

this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowAdding.AddNewRowClientEvents.EnteredEditMode = "WDG1RowAdding_EnteredEditMode";
// The client event 'EnteredEditMode' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the EditModeEventArgs
  
  function WDG1CellEditing_EnteredEditMode(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();

      window.status = "The old value in the cell is : " + value;     
   
  }

  

// The client event 'EnteredEditMode' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the EditModeEventArgs
  function WDG1RowAdding_EnteredEditMode(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();

      window.status = "The new cell under the column '" + key + "' entered edit mode";
      
  }
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