how to set RadRibbonView.SelectedTab?

2 posts, 0 answers
  1. Chad
    Chad avatar
    12 posts
    Member since:
    Apr 2008

    Posted 08 May 2013 Link to this post

    I need to pragmatically set the selected tab in the RibbonView - how can that be done?

      Chad
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 May 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top