/// <summary> /// Updates the ribbon. /// </summary> public virtual void UpdateRibbon() { if (this.RibbonSourceUri == null) { return; } var ribbon = new Ribbon(); IHasCommandContext context = this; ribbon.CommandContext = context.GetCommandContext(); ribbon.ID = "Ribbon"; HtmlTextWriter writer = new HtmlTextWriter(new StringWriter()); ribbon.RenderControl(writer); AjaxScriptManager.SetOuterHtml("Ribbon", writer.InnerWriter.ToString()); AjaxScriptManager.Eval("scCatalog.showRibbon()"); }
/// <summary> /// Refreshes the grid. /// </summary> public virtual void RefreshGrid() { AjaxScriptManager.Eval("scCatalog.refreshGrid()"); }