Declined
Last Updated: 17 Aug 2020 15:17 by ADMIN
Oluwagbenga
Created on: 13 Aug 2020 06:45
Category: DataGrid
Type: Bug Report
0
Custom Font not working

Hi,

The DataGrid does support or response to Custom Font set Using the ExportFont Attribute. But when a contentTemplate is used and a label control is place in it. The font shows on the label but not on the Header or Content of the Grid.

1 comment
ADMIN
Yana
Posted on: 17 Aug 2020 15:17

Hello Oluwagbenga,

Indeed, DataGrid will not take into account the custom font - this is due to the fact that we're using Skiasharp library for rendering the DataGrid and Skia cannot properly apply the font.  I've updated the status of this item to "Declined" as there is not suitable solution from our side.  

As a workaround for the column headers you can set a template of your own with a Label element. For example instead of setting HeaderText:

<telerikDataGrid:DataGridTextColumn.HeaderContentTemplate>
	<DataTemplate>
		<Label Text="your text" FontFamily="MyFont" />
	</DataTemplate>
</telerikDataGrid:DataGridTextColumn.HeaderContentTemplate>

You can also utilize the new CellContentTemplate and CellEditTemplate properties of the DataGrid columns and set custom content.

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik