Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateOpened = "WDG1_TemplateOpened"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateOpened = "WDG1_TemplateOpened";
// The client event TemplateOpened takes two parameters sender and e // sender is the object which is raising the event // e is the EditRowEventArgs function WDG1_TemplateOpened(sender, e) { var wdg = $find("WebDataGrid1"); //Returns the grid's behavior collection. All of the grid behaviors are contained by this collection. var behaviors = wdg.get_behaviors(); //Returns reference to the editing core behavior if one exists in the collection. Null if the behavior is not added or not enabled on the server. var editingCore = behaviors.get_editingCore(); //Returns EditingCore behavior collection var editingCoreBehaviors = editingCore.get_behaviors(); //Returns reference to the row editing template behavior if one exists in the collection. Null if the behavior is not added or not enabled on the server. var rowEditingTemplate = editingCoreBehaviors.get_rowEditingTemplate(); //Returns the row that is being edited var row = e.get_row(); //Indicates whether the row is in edit mode var bool = rowEditingTemplate.get_isInEditMode(row); }