Hello,
I have a problem with the RadContextMenu. I have an RadMenuItem's IsEnabled property bound to an object and am using a converter to change that into a bool. However, the converter never gets called unless I use TwoWay binding which is not possible. Any ideas about this? Below is my sample:
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="TEXT UNIT" FontSize="12" IsEnabled="{Binding RadioSystemType, Converter={StaticResource Enable_Texting_SysType}}" Command="{Binding Main.AddConversation, Mode=OneWay, Source={StaticResource Locator}}" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}" Click="TextUnitorGroup_Click"/>
<telerik:RadMenuItem Header="SETTINGS" FontSize="12" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}" Command="{Binding Main.EditUnitCommand, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="FOLLOW UNIT" FontSize="12">
<telerik:RadMenuItem Header="TRACK IN WINDOW 1" FontSize="12" CommandParameter="{Binding Mode=OneWay}" Command="{Binding Main.FollowUnitWindow1Command, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="TRACK IN WINDOW 2" FontSize="12" CommandParameter="{Binding Mode=OneWay}" Command="{Binding Main.FollowUnitWindow2Command, Mode=OneWay, Source={StaticResource Locator}}"/>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="NEAREST ASSETS" FontSize="12" Click="RadMenuItem1_Click"/>
<telerik:RadMenuItem Header="ADD UNIT" FontSize="12" Command="{Binding Main.AddUnitCommand, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="DELETE UNIT" FontSize="12" Command="{Binding Main.RemoveUnitCommand, Mode=OneWay, Source={StaticResource Locator}}" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}"/>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
I have a problem with the RadContextMenu. I have an RadMenuItem's IsEnabled property bound to an object and am using a converter to change that into a bool. However, the converter never gets called unless I use TwoWay binding which is not possible. Any ideas about this? Below is my sample:
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="TEXT UNIT" FontSize="12" IsEnabled="{Binding RadioSystemType, Converter={StaticResource Enable_Texting_SysType}}" Command="{Binding Main.AddConversation, Mode=OneWay, Source={StaticResource Locator}}" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}" Click="TextUnitorGroup_Click"/>
<telerik:RadMenuItem Header="SETTINGS" FontSize="12" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}" Command="{Binding Main.EditUnitCommand, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="FOLLOW UNIT" FontSize="12">
<telerik:RadMenuItem Header="TRACK IN WINDOW 1" FontSize="12" CommandParameter="{Binding Mode=OneWay}" Command="{Binding Main.FollowUnitWindow1Command, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="TRACK IN WINDOW 2" FontSize="12" CommandParameter="{Binding Mode=OneWay}" Command="{Binding Main.FollowUnitWindow2Command, Mode=OneWay, Source={StaticResource Locator}}"/>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="NEAREST ASSETS" FontSize="12" Click="RadMenuItem1_Click"/>
<telerik:RadMenuItem Header="ADD UNIT" FontSize="12" Command="{Binding Main.AddUnitCommand, Mode=OneWay, Source={StaticResource Locator}}"/>
<telerik:RadMenuItem Header="DELETE UNIT" FontSize="12" Command="{Binding Main.RemoveUnitCommand, Mode=OneWay, Source={StaticResource Locator}}" CommandParameter="{Binding MakeKeyBindable, Mode=OneWay}"/>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>