Me.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateClosed = "WDG1_TemplateClosed"
this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.RowEditingClientEvents.TemplateClosed = "WDG1_TemplateClosed";
// The client event TemplateClosed takes two parameters sender and e //sender is the object which is raising the event // e is the EditRowEventArgs function WDG1_TemplateClosed(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 raising the 'TemplateClosed' event var row = e.get_row(); }