Inheritance: StateManagedItem
        /// <summary>
        /// Add tool 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="tool"></param>
        public virtual void AddTool(Tool tool)
        {
            //if (!ExtNet.IsAjaxRequest)
            //{
            //    throw new Exception("AddTool method must be used during ajax request to add dynamic control only");
            //}

            tool.RegisterAllResources = true;
            tool.RegisterScripts();
            tool.RegisterStyles();
            tool.AutoRender = false;

            this.Call("addTool", tool.ToConfig());
        }
Exemple #2
0
 public virtual TBuilder Tools(Tool tool)
 {
     this.ToComponent().Tools.Add(tool);
     return(this as TBuilder);
 }
Exemple #3
0
 void Tools_AfterItemAdd(Tool item)
 {
     item.Owner = this;
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 public Tool.Builder Tool(Tool component)
 {
     return(new Tool.Builder(component));
 }