Hello,
i have a simple model.
class A
{
public string Title {get;set;}
public string Content {get;set;}
}
in VM i make a List<A> ExpanderMenu and bind it to the RAdPanelBar, Title is binding ok,
but when i click to expand the PanelBar its doesn't expand.
Who to expand it???
<DataTemplate x:Key="PanelBarItemTemplate">
<TextBlock Text="{Binding Content}" />
</DataTemplate
>
<telerik:HierarchicalDataTemplate x:Key="ExpanderMenuItemTemplate"
ItemTemplate="{StaticResource PanelBarItemTemplate}"
ItemsSource="{Binding}"
>
<TextBlock Text="{Binding Title}" />
</telerik:HierarchicalDataTemplate>
<telerik:RadPanelBar x:Name="Menu"
Grid.Row="2"
ExpandMode="Multiple"
IsEditable="False"
IsExpandOnSingleClickEnabled="True"
ItemTemplate="{StaticResource ExpanderMenuItemTemplate}"
ItemsSource="{Binding ExpanderMenu}"
i have a simple model.
class A
{
public string Title {get;set;}
public string Content {get;set;}
}
in VM i make a List<A> ExpanderMenu and bind it to the RAdPanelBar, Title is binding ok,
but when i click to expand the PanelBar its doesn't expand.
Who to expand it???
<DataTemplate x:Key="PanelBarItemTemplate">
<TextBlock Text="{Binding Content}" />
</DataTemplate
>
<telerik:HierarchicalDataTemplate x:Key="ExpanderMenuItemTemplate"
ItemTemplate="{StaticResource PanelBarItemTemplate}"
ItemsSource="{Binding}"
>
<TextBlock Text="{Binding Title}" />
</telerik:HierarchicalDataTemplate>
<telerik:RadPanelBar x:Name="Menu"
Grid.Row="2"
ExpandMode="Multiple"
IsEditable="False"
IsExpandOnSingleClickEnabled="True"
ItemTemplate="{StaticResource ExpanderMenuItemTemplate}"
ItemsSource="{Binding ExpanderMenu}"