This question is locked. New answers and comments are not allowed.
Is it possible to bind to group header element from my collection which has not been distinguished as a groupedescriptor ?
I'm trying to do something similar to that :
<telerikGrid:RadDataGrid.GroupDescriptors> <telerikGrid:PropertyGroupDescriptor PropertyName="Country"/> </telerikGrid:RadDataGrid.GroupDescriptors>I'm trying to do something similar to that :
<local:CustomDataTemplateSelector x:Key="TemplateSelector">
<local:CustomDataTemplateSelector.ExpandedTemplate> <DataTemplate> <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Group.Key}" Foreground="#21A6FF" /> // "Country"
<Image Source="{Binding IconPath}" VerticalAlignment="Center"/> // element I would like to add
</StackPanel>
</DataTemplate>
</local:CustomDataTemplateSelector.ExpandedTemplate>
<local:CustomDataTemplateSelector.CollapsedTemplate>
<DataTemplate>
<TextBlock Text="{Binding Group.Key}" Foreground="#FFDE5B" FontStyle="Italic"
Margin="115,0,0,0" VerticalAlignment="Center"/>
</DataTemplate>
</local:CustomDataTemplateSelector.CollapsedTemplate>
</local:CustomDataTemplateSelector>