コード例 #1
0
ファイル: TableGrid.cs プロジェクト: rahodges/Amns
 /// <summary>
 /// Creates controls on the toolbar. This is necissary to avoid ComponentArt Toolbar's
 /// inability to process postbacks when the ToolBarItem has not yet been instantiated
 /// into the ToolBarItem list.
 /// </summary>
 protected override void CreateToolBarControls()
 {
     toolBar.Items.Add(ToolBarUtility.New());
     toolBar.Items.Add(ToolBarUtility.Edit());
     toolBar.Items.Add(ToolBarUtility.Delete());
     toolBar.Items.Add(ToolBarUtility.Break());
     base.CreateToolBarControls();
 }
コード例 #2
0
ファイル: TableGrid.cs プロジェクト: rahodges/Amns
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            toolBar = ToolBarUtility.DefaultToolBar("toolBar");
            toolbars.Add(toolBar);
            CreateToolBarControls();
            Controls.Add(toolBar); // <--- MUST BE CALLED AFTER CreateToolBarControls() for Event Handling
            toolBar.ItemCommand += new ToolBar.ItemCommandEventHandler(itemCommand);
        }