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

how to set RadRibbonView.SelectedTab?

1 Answer 149 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 08 May 2013, 01:37 PM
I need to pragmatically set the selected tab in the RibbonView - how can that be done?

  Chad

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 10 May 2013, 01:44 PM
Hi Chad,

The RadRibbonView provides a few selection-related properties. But in order to change the selection in code-behind I'd suggest setting the RibbonView SelectedIndex value, or if you have an instance of a RadRibbonTab, then setting the SelectedItem property. You can also set a RadRibbonTab IsSelected property to True thus selecting the tab.

If the RadRibbonView is data-bound, you can use the same properties, but you'll have to make sure that the RadRibbonView.SelectedItem is set to an instance of a business object that represents a RibbonTab.

You can find more information regarding the RibbonView selection support in our documentation.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RibbonView and RibbonWindow
Asked by
Chad
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or