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

Localization without using converters?

3 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 12 Dec 2016, 08:56 AM
Hi Telerik,

 

Our grids containing a large amount of data are facing a performance issue, and I figured out that the use of converters to translate texts such as True/False to Yes/No is contributing to this.

So is there any other way to perform those translations without going through converters? Specially this True/False that appear on grouping and filtering.

thank you!

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 14 Dec 2016, 03:10 PM
Hello Jacob,

I've come across a number of articles, regarding the subject:

Converter best practice for better performance
Better solution to replace Converters in WPF
Compare of WPF Converters, and Direct Binding

I hope you find these resources helpful.

Regards,
Dilyan Traykov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jacob
Top achievements
Rank 1
answered on 23 Dec 2016, 11:18 AM

Hey Dilyan,

I'm afraid all those links work with converters. And as you can see by the third one, there is a gap of performance between using direct bindings and converters.

I opened this ticket because I was wondering if telerik had some sort of built in dictionary where I could localize standardized strings such as True/False or Yes/No and translate them there, so that the translations would be shown by default.

That would keep me from using converters instead.

Please let me know

 

0
Dilyan Traykov
Telerik team
answered on 23 Dec 2016, 04:06 PM
Hello Jacob,

A list of the available localization resources currently available can be found in the control's Localization article. However, I do not believe any of them would work for you in this case.

The only suggestion I have left is to replace the converters using any of the approaches suggested in the articles I sent in my previous reply. I hope you find this applicable.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Jacob
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or