Localization problem with columns of type double (decimal separator)

3 posts, 1 answers
  1. Martin
    Martin avatar
    5 posts
    Member since:
    Nov 2010

    Posted 04 Jan 2013 Link to this post

    Hi,

    When I have a GridViewDataColumn of type "double", it is displayed with a "." as decimal separator, disregarding the localization settings (where in my case "," is the decimal separator).  On the other hand, the filtering of the colum does look at the localization.
    So the users sees for instance 1.51 in the column, but has to type 1,5 in the filter textbox, or otherwise a error is generated (which is very confusing to the user).  Or maybe I am missing something here ?

    Kind regards,

    Martin
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Jan 2013 Link to this post

    Hello Martin,

    Now the Culture used for formatting the GridView is the one specified as a Language for it or for the containing Window. We have changed the behaviour of the GridView concerning culture settings to be consistent with the one for the DataGrid. You should set the Language property to be the CurrentCulture and the GridView will be formatted based on it.

    You could check this forum thread. This help article may be helpful as well.

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Feb 2013 Link to this post

    Hello Martin,

    In addition to my last answer, I would like to inform you that we have introduced a new property IsLocalizationLanguageRespected of the RadGridView. It is available with our latest Q1 2013 release. 

    Its default value is 'true' meaning that the formatting will be based on the Language property (default behaviour). Once you set it to 'false", then the CurrentCulture will be respected.
     

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top