バージョン

ExitedEditMode プロパティ (EditableClientEvents)

セルの編集モードを終了した後に発生するイベント。
シンタックス
'宣言
 
Public Property ExitedEditMode As String
public string ExitedEditMode {get; set;}
使用例
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+"'."; 
  }
参照