RibbonView behavior when selected tab is removed

3 posts, 1 answers
  1. Luc
    Luc avatar
    11 posts
    Member since:
    Feb 2013

    Posted 19 Mar 2015 Link to this post

    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. Answer
    Milena
    Admin
    Milena avatar
    203 posts

    Posted 23 Mar 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Luc
    Luc avatar
    11 posts
    Member since:
    Feb 2013

    Posted 31 Mar 2015 in reply to Milena Link to this post

    Hi,

    Yes this workaround work for me. Thanks
    Regards
Back to Top