protected override void OnPreRender(EventArgs e) { if (StopProcessing) { // No actions if processing is stopped } else { ScriptHelper.RegisterJQuery(Page); RequestContext.ClientApplication.Add("isVerticalTabs", true); RequestContext.ClientApplication.Add("isApplication", IsApplication); bool allowScrolling = !PortalContext.ViewMode.IsDesign(true); ScriptHelper.RegisterModule(this, "CMS/VerticalTabs", new { id = layoutElem.ClientID, scrollable = allowScrolling }); if (allowScrolling) { CssRegistration.RegisterCssLink(Page, "~/CMSScripts/jquery/jquery-jscrollpane.css"); } if (RequestHelper.IsPostBack()) { tabControl.DoTabSelection(); } } base.OnPreRender(e); }
protected override void OnPreRender(EventArgs e) { if (StopProcessing) { // No actions if processing is stopped } else { if (RequestHelper.IsPostBack()) { tabControl.DoTabSelection(); } } base.OnPreRender(e); }
protected override void OnPreRender(EventArgs e) { if (StopProcessing) { // No actions if processing is stopped } else { ScriptHelper.RegisterJQuery(Page); RequestContext.ClientApplication.Add("isVerticalTabs", true); ScriptHelper.RegisterModule(this, "CMS/VerticalTabs", layoutElem.ClientID); if (RequestHelper.IsPostBack()) { tabControl.DoTabSelection(); } } base.OnPreRender(e); }