Пример #1
0
        /// <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()");
        }
Пример #2
0
 /// <summary>
 /// Refreshes the grid.
 /// </summary>
 public virtual void RefreshGrid()
 {
     AjaxScriptManager.Eval("scCatalog.refreshGrid()");
 }