Version

TemplateClosed Property

Event fired after the edit row template is closed.
Syntax
'Declaration
 
Public Property TemplateClosed As String
public string TemplateClosed {get; set;}
Example
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();
     
  }
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also