Version

TemplateOpened Property

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