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.
Stumbled across this potential solution this morning. If you check to see if the tool exists in the ultratoolbarmanager prior to attempting to work with it, this might solve your problem. See code snippet below.
ToolBase bTool = this.ultraToolbarsManager1.Tools[toolKey];if (bTool != null){ this.ultraToolbarsManager1.Ribbon.QuickAccessToolbar.Tools.AddTool(toolKey);}
Hi Kris,
Sorry I have not found a solution. To get the tootlbar appearing I am placing the toolbar in a separate UserControl and then adding this UserControl to the top of the working UserControl.
Greetings...
I am experiencing this same problem. Did you ever find a solution to this problem?
It appears the staff at Infragistics decided this wasn't worth responding to. Not sure why.