Need More Info
Last Updated: 24 Oct 2024 09:34 by ADMIN
Itzik
Created on: 12 Oct 2024 20:38
Category: UI for .NET MAUI
Type: Bug Report
1
RadDataGrid Hebrew content

Our product is also in use in Hebrew language (RTL) and i noticed that hebrew letters are not shown in the RadDataGrid.

I assume its a but since in other controls i use i havnt encountered this issue (yet).

 

 

Please please fix...
This is very important for us.

Many thanks in advance!

5 comments
ADMIN
Didi
Posted on: 15 Oct 2024 13:52

Hi Itzik,

The CellContentStyle property is defined inside the DataGridTypedColumn class. All classes that inherits from it can access this property.

Here is an example in code behind:

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
        var style = new DataGridTextCellStyle
        {
            FontSize = 30,
            //FontFamily = "your font family here",
            FontAttributes = FontAttributes.Bold,
        };
        Dispatcher.Dispatch(() =>
        {
            var columns = this.datagrid.Columns;
            foreach (DataGridTypedColumn column in columns)
                if (column is DataGridTypedColumn)
                {
                    column.CellContentStyle = style;
                }
        });
    }
}

I hope this will be of help.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Itzik
Posted on: 15 Oct 2024 11:59

Ive found a relatively easy way to set the style for the header programatically (On OnPropertyChanged event).
I wanted to do the same for the content cells but apparently there is no simple, similar way to do this as for the header.

Why?

What do you suggest?

 
Itzik
Posted on: 15 Oct 2024 08:19

Hi Didi

 

I appreciate your detailed response!

 

We dont use predefined columns, instead we bind a DataTable and columns are created dynamically.

Whats the way to add this style in this case?

ADMIN
Didi
Posted on: 14 Oct 2024 15:39

Hello Itzik,

We had a similar reported behavior and a fix for it was provided from 5.2.0 version of Telerik MAUI https://feedback.telerik.com/maui/1579550-datagrid-winui-android-some-languages-are-not-properly-rendered-by-skiasharp-element  - there is a solution in the comment below -> how to register the font and then how to add this font as a font family to the header style. I am pasting my reply here for visibility:

In order to display Japanese, Chinese characters, etc. you have to add and register the font in your MAUI application.  How to add and register fonts in your .NET MAUI application is described here: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/fonts?view=net-maui-8.0 

Then you have to set the font family to the HeaderStyle, group style, etc.

 <telerik:DataGridNumericalColumn HeaderText="あああ"
                                  HeaderStyle="{StaticResource headerStyle}"
                                  PropertyName="Value"/>


    <ContentPage.Resources>
        <ResourceDictionary>
            <telerik:DataGridColumnHeaderStyle x:Key="headerStyle" TextFontFamily="JapaneseFont" />
        </ResourceDictionary>
    </ContentPage.Resources>

Give this approach a try and let me know if you have further questions. If the issue still persist, send me a sample project where the behavior occurs. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Itzik
Posted on: 13 Oct 2024 10:43
Maybe it's related to the default font family used in the content.
Can you tell us how to define a custom font family?