/// <summary> /// Adds docked item to the panel. /// Note : this method must be used during Ajax request (when the panel instance is created on the client side) /// </summary> /// <param name="component">The AbstractComponent or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left').</param> public virtual void AddDocked(AbstractComponent component) { //if (!ExtNet.IsAjaxRequest) //{ // throw new Exception("AddDocked method must be used during ajax request to add dynamic control only"); //} if (component.Dock == Dock.None) { throw new Exception("You have to specify Dock for docked component"); } component.RegisterAllResources = true; component.RegisterScripts(); component.RegisterStyles(); component.PreventRenderTo = true; this.Call("addDocked", component.ToConfig()); }
public static string ToConfig(AbstractComponent component) { return(component.ToConfig()); }
public static string ToConfig(AbstractComponent component) { return component.ToConfig(); }
public static void Render(AbstractComponent component) { CompressionUtils.GZipAndSend(component.ToConfig()); }