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
1105
Positioning dockedColumn and dockedRow not responding
posted

Hi,

when  using the AddRange Method of the toolbarmanager the row and colomn positioning works fine. But when I programmatically use the AddToolbar Method the toolbars just appear next to each other.

Can anyone tell me what I am doing wrong?

Thanx

Stefan

 

ultraToolbar1.DockedColumn = 0;

ultraToolbar1.DockedRow = 0;

ultraToolbar1.IsMainMenuBar =
true;ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[ {

popupMenuTool5});

ultraToolbar1.Text =
"UltraToolbar1";

ultraToolbar2.DockedColumn = 0;

ultraToolbar2.DockedRow = 1;

ultraToolbar2.Text =
"UltraToolbar2";

// this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[ {

// ultraToolbar1,

// ultraToolbar2});

this.ultraToolbarsManager1.Toolbars.AddToolbar("UltraToolbar1");

this.ultraToolbarsManager1.Toolbars.AddToolbar("UltraToolbar2");

  • 44743
    posted

    The AddToolbar method creates a new toolbar internally, assigns it the key passed into the method, adds it to the manager, and returns it. Instead, use the Add method, which will take an existing toolbar and add it to the manager.