Hi
We have a problem with ContextMenu in a textbox when we try to use it inside a DataFormDataField, the items doesn't appears, just appear "Copy, Cut, Paste".
We did try populate the ItemsSource property from Opening Event and from a Binding, but doesn´t work
I attached a little example solution
And here some code, the textbox outside DataForm works perfect
Thanks in advance
We have a problem with ContextMenu in a textbox when we try to use it inside a DataFormDataField, the items doesn't appears, just appear "Copy, Cut, Paste".
We did try populate the ItemsSource property from Opening Event and from a Binding, but doesn´t work
I attached a little example solution
And here some code, the textbox outside DataForm works perfect
<Grid> <Grid.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Grid.Resources> <telerik:RadDataForm x:Name="DataForm"> <telerik:RadDataForm.ReadOnlyTemplate> <DataTemplate> <TextBox x:Name="textBox" Width="200" ContextMenu="{x:Null}" VerticalAlignment="Top" Margin="141,125,176,0"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="ContextMenuHugo" ItemContainerStyle="{StaticResource MenuItemContainer}" Opening="ContextMenuHugo_OnOpening"> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </TextBox> </DataTemplate> </telerik:RadDataForm.ReadOnlyTemplate> </telerik:RadDataForm> <TextBox x:Name="textBox" Width="200" ContextMenu="{x:Null}" VerticalAlignment="Top" Margin="141,125,176,0"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="ContextMenuHugo" ItemContainerStyle="{StaticResource MenuItemContainer}" > </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </TextBox> </Grid>Thanks in advance