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

Change group row font style

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 1
Iron
Benedikt asked on 26 Jun 2019, 09:50 PM

Hey,

 

is it possible to change just the font of the grouped rows? The default and cell fonts should not be changed.I want

to change the font to consolas (mono space font).

 

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 01 Jul 2019, 09:16 AM
Hi Benedikt,

You can achieve the desired result by creating a style targeting the GroupHeaderRow if you're using the Flat GroupRenderMode or the GridViewGroupRow if you're using the Nested mode. As we recommend using the Flat mode, I'm providing the required style when using this setting.

<Style TargetType="telerik:GroupHeaderRow" BasedOn="{StaticResource GroupHeaderRowStyle}">
    <Setter Property="FontFamily" Value="Consolas" />
</Style>

I've prepared a small sample project to demonstrate both scenarios.

Please have a look and let me know if you're able to achieve the desired result.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Benedikt
Top achievements
Rank 1
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or