protected override void OnLoad(EventArgs e) { this.SuppressPageValidation = true; base.OnLoad(e); string[] buttons = new string[] { "btnAddForm", "btnAddRow", "btnAddColumn", "btnAddGroup", "btnAddMerge", "btnAddTab", "btnAddTabItem", "btnAddGrid", "btnAddPopup", "btnAddPanel", "btnAddLabel", "btnAddButton", "btnAddGroupBox", "btnAddRule", "btnAddRadioButton", "btnAddScript" }; var tab = (PXTab)this.SplitContainer.FindControl("tab"); foreach (string id in buttons) { var btn = tab.FindControl(id) as PXButton; if (btn != null) { btn.Attributes["draggable"] = "true"; btn.Style[HtmlTextWriterStyle.MarginLeft] = Unit.Pixel(30).ToString(); btn.CallBack += this.OnCreateControl; } } //if (ControlHelper.IsReloadPage(this)) { this.LoadComplete += delegate(object sender, EventArgs ea) { var tree = SplitContainer.FindControl("TreePageControls") as PXTreeView; if (tree.ToolBar != null) { tree.ToolBar.CallbackUpdatable = true; } }; } }