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.

How do I change the order of main tabs in a RibbonControlAdv ?

Thread ID:

Created:

Updated:

Platform:

Replies:

91517 Nov 22,2009 01:44 PM Dec 7,2009 07:27 AM Windows Forms 3
loading
Tags: Tools
Matthew Daniels
Asked On November 22, 2009 01:44 PM

Hi

I'm putting together a ribbon bar in the designer and have added some main tabs to it. I'd like to change the order of the tabs but they do not seem to support dragging and dropping? Is there an easier way of changing the order of the tabs in the designer rather than deleting them and adding them back in the order I want?

Nandakumar R [Syncfusion]
Replied On November 22, 2009 11:16 PM

Hi,

Can you please try the Position property and let me know if that works?

[C#]
IRibbonItems m_items = this.ribbonControlAdv1.Header.MainItems;
foreach (ToolStripTabItem m_item in m_items)
{
MessageBox.Show(m_item.Name.ToString());
}

With this approach, you can get the order of the tab items. To change the position of the items, you can use the Position property.

[C#]
toolStripTabItem3.Position = 0;


Regards,
Nanda

Matthew Daniels
Replied On December 6, 2009 01:20 PM

Thanks but that is a run time solution not a solution for dragging and dropping in the designer.

Dhivya K [Syncfusion]
Replied On December 7, 2009 07:27 AM

Hi Mattew,

Currently it is not possible to drag and drop the tab item of RibbonControlAdv in design time. You will have to set the Position property to change the order. Please let me know if you have any other concern.

Regards,
Dhivya.

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.

;