Binding to IsChecked doesn't work

2 posts, 0 answers
  1. aedev
    aedev avatar
    7 posts
    Member since:
    Jul 2009

    Posted 25 Dec 2010 Link to this post

    I want to bind the IsVisible property of a GridViewDataColumn to the IsChecked property of a RadMenuItem in a user control.  I tried two approaches, but neither worked:




    nav:RadMenuItem x:Name="visCust" Header="{Binding Path='[Customer name]', Mode=OneTime, Source={StaticResource Localization}}" IsCheckable="True" IsChecked="True"/>


    And further down in my XAML:




    grid:GridViewDataColumn IsReadOnly="True" Header="Customer" UniqueName="CustomerName" IsVisible="{Binding ElementName=visCust, Path=IsChecked}" />


    I also tried the reverse:




    <nav:RadMenuItem x:Name="visStat" Header="{Binding Path='[Status]', Mode=OneTime, Source={StaticResource Localization}}" IsCheckable="True" IsChecked="{Binding ElementName=grdStat, Path=IsVisible, Mode=TwoWay}" />


    And further down in my XAML:




    grid:GridViewDataColumn x:Name="grdStat" Header="Status" Width="90" UniqueName="AlertFlag" >


  2. George
    George avatar
    1332 posts

    Posted 03 Jan 2011 Link to this post

    Hello Holden,

    We are aware of this issue with the RadDocking control. I would suggest you to handle Checked and Unchecked event of the RadMenuItem and to set the column visibility manually. Sorry of any inconvenience caused.

    All the best,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top