Hi,
my problem is i don't know how to update the Ribbon Menü, if the user have saved their settings to a xml-File.
The Problem is if the user have an UserConfig with his settings and in this xml file are 100 Tools, but the development going further and now we have 110 Tools.........How to update the Layout ?
I have tried to merge the UltraToolbarManager but it don't worked......
Can u help me please to get this running?
Thanks
ingo
Layout merging is not currently supported. You can submit a feature request for this: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
You can manually get around this by letting the layout file load. Then you can check the root tools collection of the toolbars manager. If any tools from the update are not present, you can manually add them to the manager and put instances of those tools in their default locations.
Hello Mike,
Thanks for your Reply ;)
I use this code to Merge my ToolbarManager :
--------------------------------------------------------------- code ----------------------------------------------------------------
public void MergeToolbarManager(UltraToolbarsManager toMerge, string strIni) { UltraToolbarsManager utbm = new UltraToolbarsManager(); string strUserIni = strIni; try { utbm.LoadFromXml(strUserIni); } catch (Exception ex) { Console.WriteLine(ex.ToString()); return; } Console.WriteLine("utbm.tools.Count : " + utbm.Ribbon.QuickAccessToolbar.Tools.Count.ToString()); // -- Location der Schnellzugriffsleiste merken toMerge.Ribbon.QuickAccessToolbar.Location = utbm.Ribbon.QuickAccessToolbar.Location; toMerge.Ribbon.IsMinimized = utbm.Ribbon.IsMinimized; ToolsCollection quickAccessTools = utbm.Ribbon.QuickAccessToolbar.Tools; RootToolsCollection toolsToMerge = toMerge.Tools; foreach (ToolBase tool in quickAccessTools) { //Console.WriteLine("tool : " + tool.ToString()); foreach (ToolBase tb in toolsToMerge) { if (tb.Key == tool.Key) { //Console.WriteLine("Tool im neuen vorhanden."); toMerge.Ribbon.QuickAccessToolbar.Tools.AddTool(tool.Key); } } } }
Thanks for Helping.
Ingo