Exemplo n.º 1
0
        /// <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());
 }
Exemplo n.º 3
0
 public static string ToConfig(AbstractComponent component)
 {
     return component.ToConfig();
 }
 public static void Render(AbstractComponent component)
 {
     CompressionUtils.GZipAndSend(component.ToConfig());
 }
Exemplo n.º 5
0
 public static void Render(AbstractComponent component)
 {
     CompressionUtils.GZipAndSend(component.ToConfig());
 }