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
close icon

Cancel Ribbon Tab change

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.



1 Reply

KR Kannan R Syncfusion Team November 11, 2013 05:08 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon