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

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

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?

3 Replies

NR Nandakumar R Syncfusion Team November 23, 2009 04:16 AM UTC

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


MD Matthew Daniels December 6, 2009 06:20 PM UTC

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


DK Dhivya K Syncfusion Team December 7, 2009 12:27 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon