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
Hi Chris,
I am also trying to add menu items into the ApplicationMenu2010 on the fly and I am interested what you decide to do about this issue. I am replying to this post in order to receive updates from Infragistics.
Thanks,
Bob
Hi Sven,
I have created CAS-96311-507CP to have my developers take a closer look at this behavior and I will be following up with you via that case.
If you have any questions in the meantime, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
thanks for your response.
When you have a look to the MS Word 2010 there is a menu item ‘Recent Documents’ in the file menu. In this menu is a check box for quick access to a number of recent documents. Please have a look to this (hope it’s ok to add this link)
http://www.youtube.com/watch?v=wornf7A9xhE
As you can see, the file menu will remain open.
By the way, removing items from the menu and adding seperators works well.
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.