Image in Group Rows in RadGridView

2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Sep 2015

    Posted 25 Sep 2015 Link to this post

    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>

     

     

     

     

     

     


     
     
     
     
     
     
     
     
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 29 Sep 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top