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
425
Refresh issue after adding a button to FileMenu
posted

Hi, 

I added a button tool at runtime but it will not shown in the FileMenu. When I switch to another menu group and switch back to the FileMenu, the button tool is shown correctly. Is there a refresh call or something else? My code is the following (NetAdvantage Forms version is 2012.1 - .net runtime 2.0):

 

                ultraToolbarsManager1.BeginUpdate();

                string toolKey = Guid.NewGuid().ToString();

                ButtonTool buttonTool = new ButtonTool(toolKey);

                buttonTool.SharedProps.Caption = "Hello World";

                ultraToolbarsManager1.Tools.Add(buttonTool);

                ultraToolbarsManager1.Ribbon.ApplicationMenu2010.NavigationMenu.Tools.InsertTool(0, toolKey);

                ultraToolbarsManager1.EndUpdate();

Thanks

BR

Sven

Parents
  • 4618
    Verified Answer
    posted

    Hi Sven,

    The UltraToolbarsManager does not extend a method for forcing the NavigationMenu to redraw itself once it has been modified, as this is an uncommon scenario; aside from explicitly closing the then re-opening the menu. The behavior that you are observing appears to be expected.

    I have inquired to my development team regarding the possibility of circumventing this behavior and I will be following up with you regarding my findings.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support

Reply Children