This is a migrated thread and some comments may be shown as answers.

RibbonView behavior when selected tab is removed

2 Answers 70 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 19 Mar 2015, 05:03 PM
Hi,

It seems that since last release (2015.1.225.45) the behaviour of RibbonView has changed. Previously when the selected RibbonTab was removed the next was selected. Now no tab is selected even if I change the SelectedItemRemoveBehaviour property on the RibbonView.
Regards
Luc

2 Answers, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 23 Mar 2015, 08:31 AM
Hi Luc,

Selection tab behavior is changed since 2013. If you have the same scenario where you remove the tab, but while the ribbon is minimized, the selection will lead to maximization of the ribbon. This one of the reason we changed this behavior. 

As for the SelectedItemRemoveBehaviour  property, you are able to see it because the RadRibbonView inherits RadTabControlBase, but it is not implemented for the ribbon.

However, if you want to select the next ribbon tab, you can set the SelectedIndex property of the ribbon to "0" or to the next index when you remove the tab. So you will have always one tab selected. For your convenience I implemented this approach in the attached project. Please take a look at it and let us know if it works for you.

Regards,
Milena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Luc
Top achievements
Rank 1
answered on 31 Mar 2015, 12:04 PM
Hi,

Yes this workaround work for me. Thanks
Regards
Tags
RibbonView and RibbonWindow
Asked by
Luc
Top achievements
Rank 1
Answers by
Milena
Telerik team
Luc
Top achievements
Rank 1
Share this question
or