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.

Cancel Ribbon Tab change

Thread ID:

Created:

Updated:

Platform:

Replies:

114245 Nov 7,2013 06:58 PM Nov 11,2013 12:08 AM Windows Forms 1
loading
Tags: Tools
Benson Butt
Asked On November 7, 2013 06:58 PM

When a user clicks another tab in the ribbon, it triggers

ribbonControlAdv1_SelectedTabItemChanged

but I couldn't find something like

ribbonControlAdv1_SelectedTabItemChanging

so I can set e.Cancel = true

to cancel the change.



Kannan R [Syncfusion]
Replied On November 11, 2013 12:08 AM

Hi B.B,

 

Thank you for using Syncfusion Products.

 

Query

Comments

When a user clicks another tab in the ribbon, it triggers

ribbonControlAdv1_SelectedTabItemChanged

but I couldn't find something like

ribbonControlAdv1_SelectedTabItemChanging

so I can set e.Cancel = true

to cancel the change.

 

We would like to let you know that, at present there is no event as SelectedTabItemChanging. And how ever your requirement for disabling TabItem selection navigation can be achieved by handling ToolstripTabItem Click event.

 

Please find the code snippet below for your reference:

 

Code Snippet:[C#]

 

if (this.DisableTabNavigation)

    this.ribbonControlAdv1.SelectedTab = this.PrevSelectedTab;

 

 

We have also prepared sample that tries to meet your requirement and it can be downloaded from below location:

 

Sample Location: RibbonControlTabNavigation.zip

 

 

Please let us know if it helps,

 

Regards,

Kannan.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.

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.

;