localization

1 Answer 121 Views
DataGrid
juan manuel
Top achievements
Rank 1
juan manuel asked on 17 Jun 2024, 12:21 AM

i try to apply localization through resources files to datagrid, but it doesn´t works, i follow all the steps and localization is working for other elements at page, any tip ??

 

thanks

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 17 Jun 2024, 11:38 AM

Hello Juan,

Thank you for your interest in the Telerik UI for .NET MAUI DataGrid control.

I am attaching a sample project which visualizes a DataGrid with localization applied through resource files. You will find DataGridResource.resx - this resource file will store the English(default) resources for the DataGrid control and DataGridResource.de.resx - this resource file will store the German resources for the DataGrid control. When you switch the language of the target device to German, start the application and click on the filter button on one of the column's header, you will be able to see the translated strings.

Note: The ResourceManager initialization should be set before the call to InitializeComponent in the page, otherwise the default values will be applied to the RadDataGrid control.

If the behavior on your side is different, update my test project with the exact setup, and send it back for further research.

Regards,
Elena
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.

juan manuel
Top achievements
Rank 1
commented on 17 Jun 2024, 05:40 PM

the keys you use in your example also works for me, but DataGrid_GroupingPanelHeaderText  or DataGrid_GroupingPanelHeaderText_Grouped never takes the values of the resource, why?
Elena
Telerik team
commented on 18 Jun 2024, 08:51 AM

Hello Juan,

This is a known issue which is logged and can be tracked here: https://feedback.telerik.com/maui/1626502-datagrid-localization-for-grouping-panel-does-not-apply. Please, cast you vote for it. On same link you can find a work-around to the problem.

Please, try the solution on your side and reach out in case you have any troubles with it.

du
Top achievements
Rank 1
commented on 20 Jul 2024, 04:42 AM

I have also encountered this problem, how should I solve it?
Didi
Telerik team
commented on 22 Jul 2024, 07:25 AM

Hi Du,
Could you please share what is the behavior you observe? 
Localization of the DataGrid, or localization of the text in the Group Header Panel? 
du
Top achievements
Rank 1
commented on 27 Jul 2024, 05:13 AM

I have submitted the code, help me check it please.

Didi
Telerik team
commented on 29 Jul 2024, 10:47 AM

Hi, 

The behavior happens because of an issue. I see my colleague Elena shared the details in a reply from 18 Jun 2024. I am pasting the Elena's answer here: 

This is a known issue which is logged and can be tracked here: https://feedback.telerik.com/maui/1626502-datagrid-localization-for-grouping-panel-does-not-apply . Please, cast you vote for it. On same link you can find a work-around to the problem.
There is a solution (in the public item) you can use to change the text in the grouping panel. 

 

 

 

Tags
DataGrid
Asked by
juan manuel
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or