/// <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()); }
public virtual TBuilder Tools(Tool tool) { this.ToComponent().Tools.Add(tool); return(this as TBuilder); }
void Tools_AfterItemAdd(Tool item) { item.Owner = this; }
/// <summary> /// /// </summary> public Tool.Builder Tool(Tool component) { return(new Tool.Builder(component)); }