RadMenuItem IsChecked

2 posts, 1 answers
  1. Chris Andrews
    Chris Andrews avatar
    37 posts
    Member since:
    Mar 2010

    Posted 29 Apr 2010 Link to this post

     

     

    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" /> 
     
     

     

     

     

     

     

     

  2. Answer
    Hristo
    Admin
    Hristo avatar
    830 posts
    Member since:
    Sep 2012

    Posted 30 Apr 2010 Link to this post

    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.

  3. Download a free trial of UI for WPF
Back to Top