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

RadMenuItem IsChecked

1 Answer 181 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Chris Andrews
Top achievements
Rank 1
Chris Andrews asked on 29 Apr 2010, 06:52 PM

 

 

I am trying to bind a IsChecked property of a RadMenuItem and does not fire the set event on my ViewModel property. When I had it set to a regular MenuItem, this was working. Is this not supported in the RadMenuItem?

DOES NOT WORK:

<telerikNavigation:RadMenuItem x:Name="ShowSummary" 
Header="Value Summary" 
IsChecked="{Binding Path=IsSummaryChecked}" 
IsCheckable="True" /> 
 
 

 

WORKS:

 

<telerikNavigation:RadMenuItem x:Name="ShowSummary" 
Header="Value Summary" 
IsChecked="{Binding Path=IsSummaryChecked}" 
IsCheckable="True" /> 
 
 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 30 Apr 2010, 12:47 PM
Hello Chris Andrews,

IsChecked binds TwoWay by default for MenuItem class but our RadMenuItem IsChecked is not defined with this option. So you have to specify TwoWay mode for the binding:
IsChecked="{Binding Path=IsSummaryChecked, Mode=TwoWay}"

Let us know if you need more information.

Greetings,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Chris Andrews
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or