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.
Unfortunately, activation email could not send to your email. Please try again.

ToolStripMenuItem in RibbonControlAdv.OfficeMenu.MainPanel

Thread ID:

Created:

Updated:

Platform:

Replies:

97761 Jan 5,2011 05:02 PM Jan 7,2011 07:40 AM Windows Forms 4
loading
Tags: Tools
Mark G
Asked On January 5, 2011 05:02 PM

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.


Jeraldes J [Syncfusion]
Replied On January 6, 2011 08:08 AM

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


Mark G
Replied On January 6, 2011 10:26 AM

Version is 8.203.0.18.


Mark G
Replied On January 6, 2011 10:44 AM

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.



Iniyen M A [Syncfusion]
Replied On January 7, 2011 07:40 AM

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.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;