This question is locked. New answers and comments are not allowed.
Hi,
In my silverlight app there is a RadGridView who has a RadContextMenu with few RadMenuItems. I tried to configure the data binding to one of the RadMenuItems(I saw this demo: http://demos.telerik.com/silverlight/#Menu/DataBinding), but it didn't work.
Otherwise, I tried, just to test, do the same binding, but with RadMenuItem inside a RadMenu and all worked normally
What must I do to data binding work when RadMenuItem is inside RadContextMenu??
Thanks,
In my silverlight app there is a RadGridView who has a RadContextMenu with few RadMenuItems. I tried to configure the data binding to one of the RadMenuItems(I saw this demo: http://demos.telerik.com/silverlight/#Menu/DataBinding), but it didn't work.
<Grid> <Grid.Resources> <telerik:HierarchicalDataTemplate x:Key="menuItemTemplate" ItemsSource="{Binding Path=Category, Converter={StaticResource ToStringTodos}, Mode=OneWay}"> <TextBlock Text="{Binding Value}" /> </telerik:HierarchicalDataTemplate> </Grid.Resources> <telerikGridView:RadGridView Name="grdFeeds"> <telerikControls:RadContextMenu.ContextMenu> <telerikControls:RadContextMenu> <telerikControls:RadMenuItem Header="Excluir"/> <telerikControls:RadMenuItem Header="Categoria" ItemTemplate="{StaticResource menuItemTemplate}" ItemsSource="{Binding Path=Category, Converter={StaticResource ToStringTodos}, Mode=OneWay}" /> </telerikControls:RadContextMenu> </telerikControls:RadContextMenu.ContextMenu> </telerikGridView:RadGridView > </Grid>Otherwise, I tried, just to test, do the same binding, but with RadMenuItem inside a RadMenu and all worked normally
<Grid> <Grid.Resources> <telerik:HierarchicalDataTemplate x:Key="menuItemTemplate" ItemsSource="{Binding Path=Category, Converter={StaticResource ToStringTodos}, Mode=OneWay}"> <TextBlock Text="{Binding Value}" /> </telerik:HierarchicalDataTemplate> </Grid.Resources> <telerikControls:RadMenu> <telerikControls:RadMenuItem Header="Alterações"> <telerikControls:RadMenuItem Header="Categorias" ItemTemplate="{StaticResource menuItemTemplate}" ItemsSource="{Binding Path=Category, Converter={StaticResource ToStringTodos}, Mode=OneWay}" /> </telerikControls:RadMenuItem> </telerikControls:RadMenu></Grid>What must I do to data binding work when RadMenuItem is inside RadContextMenu??
Thanks,