Firstly, I want to let you know that the RadRibbonBar
control will be removed from our suite of control with the next official release. This is why I'd like to strongly encourage you to replace your RibbonBar
definition with a RibbonView
definition instead. The RibbonView
control is our new ribbon UI implementation and it supports more extended scenarios than the old control. Furthermore, the APIs of the two controls are almost the same, which makes the upgrade easier.
Please do try to replace your RibbonBar
definitions with RibbonViews
instead and let us know if you encounter any issues.
Now, back to your question. Unfortunately, as I'm not sure how you've set up your view and commands logic, I don't know what approach will best suit your case. However, the RadTabControl
selection can be controlled via a number of properties:
- RadTabItem.IsSelected - you can bind this property to business objects and control the value of the business objects when the ribbon commands are executed
- RadTabControl.SelectedIndex - you can bind this index to a business object and control the value of the business object when the ribbon commands are executed
- RadTabControl.SelectedItem - you can bind this property to a business object and control the value of the business object when the ribbon commands are executed
I hope this information will help you choose the best approach for your scenario. And if you encounter any issues, you can send over your solution and we'll gladly take a closer look at it.
All the best,
the Telerik team