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

Backstage menu databinding bug

1 Answer 56 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 20 Oct 2011, 07:53 PM
Hi,

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?

Thanks,
Jon

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 25 Oct 2011, 01:48 PM
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.

Greetings,
Tina Stancheva
the Telerik team

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

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