Backstage menu databinding bug

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    22 posts
    Member since:
    Apr 2011

    Posted 20 Oct 2011 Link to this post


    I'm using MVVM with the RibbonView. When I have SelectedItem using a two-way binding, the backstage menu no longer functions.

    Is this a bug and how can I work around it?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 25 Oct 2011 Link to this post

    Hello Jonathan,

    Each time you open a RibbonBackstage a default item gets selected. Basically the RibbonBackstage control has one default item which should be selected when the control opens and it is set through the IsDefault property of the RibbonBackstageItems. This is why if you bind the RadRibbonBackstageItem.IsDefault property instead of the RadRibbonBackstage.SelectedItem, you'll get the expected behavior - one item will be marked as selected/default when you open the Backstage menu.

    In an MVVM scenario if you want to keep track of the selected item of the RibbonBackstage control and be able to control which item will be selected when the menu opens, then you'll need to bind both the BackstageItems.IsDefault property and the RibbonBackstage.SelectedItem property. The IsDefault property will only control the default item - the item that is selected by default when the backstage menu opens, while the SelectedItem will keep the selected backstage item at all times. And if you need to change the selection while the BackstageMenu is still opened you'll have to use the selection properties of the RibbonBackstage.

    I hope this information helps. Please let us know if we can further assist you.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top