Localization without using converters?

4 posts, 0 answers
  1. Jacob
    Jacob  avatar
    49 posts
    Member since:
    Apr 2016

    Posted 12 Dec 2016 Link to this post

    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!

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1173 posts

    Posted 14 Dec 2016 Link to this post

    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 performace of WPF Converters, DataTriggers 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.
  3. Jacob
    Jacob  avatar
    49 posts
    Member since:
    Apr 2016

    Posted 23 Dec 2016 in reply to Dilyan Traykov Link to this post

    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

     

  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1173 posts

    Posted 23 Dec 2016 Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top