This is a migrated thread and some comments may be shown as answers.

Image in Group Rows in RadGridView

1 Answer 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 25 Sep 2015, 10:14 PM

I have a ​gridview with two grouping columns. I want to add some images to the group column header

<t:RadGridView x:Name="WorksGridView" Grid.Column="1"

AutoGenerateColumns="False"

ShowGroupPanel="False"

IsFilteringAllowed="False"

CanUserSortColumns="False"

IsReadOnly="True"

SelectionMode="Single"

SelectionUnit="FullRow"

RowIndicatorVisibility="Visible"

IsSynchronizedWithCurrentItem="True"

RowLoaded="RadGridView_RowLoaded"

GroupRenderMode="Flat"

ItemsSource="{Binding WorksGridBinding, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"

SelectedItem="{Binding WokrSelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"

CurrentItem="{Binding WorkCurrentItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" >

<t:RadGridView.GroupDescriptors>

<t:GroupDescriptor Member="Groups" SortDirection="Ascending" />

<t:GroupDescriptor Member="Subgroups" SortDirection="Ascending" >

<t:GroupDescriptor.AggregateFunctions>

<t:CountFunction Caption="Entries count: " />

 

 

 

</t:GroupDescriptor.AggregateFunctions>

</t:GroupDescriptor>

</t:RadGridView.GroupDescriptors>

 

<t:RadGridView.Columns>

<t:GridViewDataColumn Width="*" HeaderTextAlignment="Center" Header="Works" HeaderCellStyle="{StaticResource HeaderStyle}">

<t:GridViewDataColumn.CellTemplate>

<DataTemplate>

<DataGridCell>

<TextBlock Text="{Binding Title}" FontSize="14" HorizontalAlignment="Left" />

</DataGridCell>

</DataTemplate>

</t:GridViewDataColumn.CellTemplate>

</t:GridViewDataColumn>

</t:RadGridView.Columns>

</t:RadGridView>

 

 

 

 

 

 


 
 
 
 
 
 
 
 

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 29 Sep 2015, 10:50 AM
Hi,

In order to achieve your goal, I would suggest you to check the Modify GroupRow help article for a reference.

Regards,
Yoan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or