protected void Page_LoadComplete(object sender, EventArgs e) { if (!this.DesignMode) { GridPanel parent = this.ParentComponent as GridPanel; if (parent == null) { throw new InvalidOperationException("The RowExpander plugin can only be added to the GridPanel Control or a Control which inherits from GridPanel."); } parent.Controls.Add(this.Template); parent.ColumnModel.BeforeClientInit += GridPanel_BeforeClientInit; } }
void Page_LoadComplete(object sender, EventArgs e) { GridPanel parent = this.ParentComponent as GridPanel; parent.ColumnModel.BeforeClientInit += new OnBeforeClientInitializedHandler(GridPanel_BeforeClientInit); }