protected override void Render(HtmlTextWriter writer) { if (!base.DesignMode) { if (DateTime.Now > CompiledOn.CompilationDate.AddDays(45.0)) { writer.Write("This is a trial version of jqSuite for ASP.NET which has expired.<br> Please, contact [email protected] for purchasing the product or for trial extension."); return; } Guard.IsNullOrEmpty(this.ID, "ID", "You need to set ID for this JQGrid instance."); JQGridRenderer jQGridRenderer = new JQGridRenderer(this); jQGridRenderer.RenderHtml(writer); } }
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (this.Page != null) { if (this.IsGridRequest() && !this.IsGridExportActive()) { this.ProcessCallBack(); return; } this.EnforceColumnContraints(); JQGridRenderer jQGridRenderer = new JQGridRenderer(this); string script = (this.HierarchySettings.HierarchyMode == HierarchyMode.Child || this.HierarchySettings.HierarchyMode == HierarchyMode.ParentAndChild) ? jQGridRenderer.GetChildSubGridJavaScript() : jQGridRenderer.GetStartupJavascript(); ScriptManager.RegisterStartupScript(this, typeof(JQGrid), "_jqrid_startup" + this.ClientID, script, false); } }