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"; }