バージョン

ExitingEditMode プロパティ (EditableClientEvents)

セルの編集モードを終了する前に発生するイベント。

このイベントはキャンセルできます。

シンタックス
'宣言
 
Public Property ExitingEditMode As String
public string ExitingEditMode {get; set;}
使用例
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);  

  }
参照