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

Binding to IsChecked doesn't work

1 Answer 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
aedev
Top achievements
Rank 1
aedev asked on 25 Dec 2010, 04:59 PM
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" >

 



1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 03 Jan 2011, 02:22 PM
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,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Menu
Asked by
aedev
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or