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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

linking a ribbontab on click?

Thread ID:

Created:

Updated:

Platform:

Replies:

143963 Apr 11,2019 08:24 PM UTC Apr 16,2019 10:15 AM UTC WinForms 4
loading
Tags: RibbonControlAdv
Arthur
Asked On April 11, 2019 08:29 PM UTC

using Word as example; exampleWordUI (ignore the highlighted box)

Imagine a TabControlAdv with some tabs below the Ribbon. What I want to do is, when a defined tabPage is selected, it would change/select the Ribbontab on the mainpanel itself too. So if i had 3 tabs on TabControlAdv, clicking the 0 would go to the "home" on Word, 1 would select the "insert" tab, etc.

Is it possible?

i tried using "ribbonControlAdv1.TabIndex" but seems to not be it.

Arthur
Replied On April 12, 2019 11:21 AM UTC

bump

Sabaridass Ramamoorthy [Syncfusion]
Replied On April 15, 2019 05:19 AM UTC

Hi Arthur,

Thanks for contacting Syncfusion support.

We can change selected tab item(ToolStripTabItem) of RibbonControlAdv using “SelectedTab” property of RibbonControlAdv. We have prepared a simple sample to achieve your requirement. In this sample, we have changed the RibbonTab according to Selected tab of TabControlAdv using  “SelectedIndexChanged” event. Please refer the below code example.

 

        private void tabControlAdv1_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            if(tabControlAdv1.SelectedIndex == 0) 
            { 
                ribbonControlAdv1.SelectedTab = toolStripTabItem1; 
            } 
            else 
            { 
                ribbonControlAdv1.SelectedTab = toolStripTabItem2; 
            } 
        }

 


 
Refer to the attached sample from below location.
http://www.syncfusion.com/downloads/support/forum/143963/ze/WF_RIB~11274815044


Regards, 
Sabaridass R 


Arthur
Replied On April 15, 2019 11:36 AM UTC

That's exactly what I wanted, thanks!!

Sabaridass Ramamoorthy [Syncfusion]
Replied On April 16, 2019 10:15 AM UTC

Hi Arthur, 
 
Thanks for the update and we are glad to know that your requirement is achieved. 
 
Please let me know if you need any further assistance on this. 
 
Regards, 
Sabaridass R  


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon