If I Remove a RibbonTab from one Ribbon and add it to another Ribbon, my PopupMenuTool controls don't work as expected anymore.
They appear but it seems like the ButtonTools in it are gone...
The only thing I'm doing is:
Ribbon:Tabs:Remove(RibbonTab).
RealRibbon:Tabs:Add(RibbonTab).
Hello,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
Have adjusted your example. Could you have a look?
Btw, if you add another button to move it back to the original ribbon, the PopupMenuTool is fine again...
thx, Lieven Cardoen
Hi Boris,
Tested it with Infragistics 12.1 and I'm having the same issue. (We do work with 11 though).
Seems like each time you move the RibbonTab to another Ribbon, the deepest childs get lost... So if I move it from Ribbon 1 to Ribbon 2 and then from Ribbon 2 to Ribbon3, then not only the Buttons in the PopupMenuTool are gone, but also the Buttons in the Tab itself.
Thx, Lieven Cardoen
Well, in the future it would be nice if Infragistics added support for multiple merging... but apart from that, I don't need any further assistance on this. thx.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Glad to hear that you found a way to do it. I hope that my approach will be good enough for you. If it needs any adjustments please let me know, I will be happy to assist you further on this.
For now I manually fixed the PopupMenuTools, but I'll try your approach later on (sprint is coming to an end...).
I'll keep you posted on this.
Thx for the effort!
Hello Lieven,
I took some time researching this and came to the conclusion that it might be better if we use the approach with saving and loading the toolbar data from the first to the second Ribbon.
Please try the following code and let me know if it suits your needs:
private void ultraButton1_Click(object sender, EventArgs e) { ultraToolbarsManager1.SaveAsXml("..//..//layout.xml", true); ultraToolbarsManager2.LoadFromXml("..//..//layout.xml"); }
I will be waiting for your feedback.