This question is locked. New answers and comments are not allowed.
I have following tree view:
Desert
Fruit
Ice Cream
Cake
Soup
Tomato soup
Vegetable soup
There are only radio buttons on 2nd level (fruit, ice cream, cake, tomato soup, vegetable soup). When i select an item from desert, the choice made in soup is removed. How can i group this per parent, it think it must have something to do with the GroupName property, but i can't figure out how to bind with the parent node
This is my XAML:
And my tree
Thanks,
Peter
Desert
Fruit
Ice Cream
Cake
Soup
Tomato soup
Vegetable soup
There are only radio buttons on 2nd level (fruit, ice cream, cake, tomato soup, vegetable soup). When i select an item from desert, the choice made in soup is removed. How can i group this per parent, it think it must have something to do with the GroupName property, but i can't figure out how to bind with the parent node
This is my XAML:
<
navigation:Page.Resources
>
<
DataTemplate
x:Key
=
"MealMenuAlternateDiet"
>
<
TextBlock
Text
=
"{Binding Description}"
/>
</
DataTemplate
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"MealMenu"
ItemTemplate
=
"{StaticResource MealMenuAlternateDiet}"
ItemsSource
=
"{Binding Diets}"
>
<
RadioButton
Content
=
"{Binding Description}"
IsChecked
=
"{Binding IsSelected, Mode=TwoWay}"
FontSize
=
"12"
/>
</
telerik:HierarchicalDataTemplate
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"Meal"
ItemTemplate
=
"{StaticResource MealMenu}"
ItemsSource
=
"{Binding MealMenus}"
>
<
TextBlock
Text
=
"{Binding Description}"
/>
</
telerik:HierarchicalDataTemplate
>
</
navigation:Page.Resources
>
And my tree
<
telerik:RadTreeView
Grid.Row
=
"2"
ItemsSource
=
"{Binding Source={StaticResource DataContextProxy}, Path=DataSource.Meals}"
ItemTemplate
=
"{StaticResource Meal}"
/>
Thanks,
Peter