We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ToolStripMenuItem in RibbonControlAdv.OfficeMenu.MainPanel

Hi,
I'm adding a complex menu structure to OfficeMenu.MainItems. All the items are instances of ToolStripMenuItem. E.g.

MainPanel
Item1
Item2
Item3
Item4
Item5
Item6

where tabs indiciate sub-menus (i.e. Item4 is in sub-menu of Item 3 and Item1 is in sub-menu of MainItems directly).
The issue is that Item3 shows a drop-down arrow appropriately, since it has a sub-menu. However, all items with sub-menus that are directly on MainPanel do not show drop-down arrows (e.g. Item1), even though they do display drop-downs on mouse hover/click. Seems like ToolStripMenuItem.DropDown (instance of ToolStripDropDown) renders these arrows, while OfficeMenu.MainPanel (instance of MenuDropDown.Panel) does not. Changing RenderMode to System or Professional didn't help. Any idea how to display arrows on these items?
Thanks.


4 Replies

JJ Jeraldes J Syncfusion Team January 6, 2011 01:08 PM UTC

Hi Mark,

Thanks for yourr interest in Syncfusion Products.

We are unable to reproduce the issue as per you have mentioned. Could you please tell us in which version you are working with. Which would be very much helpful for us to provide you the better solution.

Please let us know if any queries.

Regards,
Jeraldes J



MG Mark G January 6, 2011 03:26 PM UTC

Version is 8.203.0.18.



MG Mark G January 6, 2011 03:44 PM UTC

To reproduce, just run the following code in any sample with RibbonControlAdv:

ToolStripMenuItem topItem = new RoolStripMenuItem("Top Item");
ToolStripMenuItem child1 = new RoolStripMenuItem("Child 1");
ToolStripMenuItem child2 = new RoolStripMenuItem("Child 2");
child1.DropDownItems.Add(child2);
topItem.DropDownItems.Add(child1);
ribbonControlAdv1.OfiiceMenu.MainPanel.Items.Add(topItem);

You'll see that Top Item does not display a drop-down arrow, even though it has a child and Child 1 does display this arrow.




IM Iniyen M A Syncfusion Team January 7, 2011 12:40 PM UTC

Hi Mark,

Thanks for the update.

You can have the same behavior with better appearance either by using OfficeSplitButton or OfficeDropDownButton.
Please take a look at the sample which is loaded locally in your Syncfusion Dashboard. Please refer the path as follows.

[Dahboard sample location path]
Open the Syncfusion Dashboard >> Windows Forms : Run Locally Installed Samples >> Tools samples >> Product Showcase >> Word 2007 Demo.

You can also assign context menus to the MenuButton if you wish to.

Please refer to the UG documentation under the following link

http://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Tools/Documents/menubuttondropdown.htm


Please let us know if you have any concerns on this or need any other details.

Regards,
Iniyen M.A.



Loader.
Live Chat Icon For mobile
Up arrow icon