Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Toolbar is hidden
posted

Hi,

 

1- I have a view displayed in an ultraTabWorkspace, the view have an ultraToolbarManager, the problem that this ultraToolbar is hidden when the view is displayed in the ultraTabWorkspace and it is visible when the view is displayed as modal.

2-  I added a new ultraToolbarManager  with a toolbar having the "view_name_tlb_key" as key and i'm initializing the toolbar like this :


ButtonTool button1 = new    ButtonTool("button1");

button1.SharedProps.Caption = "Copy";   
  _ultraToolbarsManager.Tools.AddRange(new ToolBase[] { button1});
 UltraToolbar mainToolBar = _ultraToolbarsManager.Toolbars["view_name_tlb_key"];
    mainToolBar.Tools.AddToolRange(new string[] { button1.Key});

now I'm having this exception  :

 

Cannot add the tool with key 'button1', since a tool with that key does not exist in the root tools collection (UltraToolbarMananger.Tools). Add the tool to the root tools collection first.

 

I'm not able to find how to make the toolbar appear in the view.

 

Best regards.