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

Localization problem with columns of type double (decimal separator)

2 Answers 322 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 04 Jan 2013, 11:04 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 04 Jan 2013, 11:23 AM
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.

0
Dimitrina
Telerik team
answered on 26 Feb 2013, 05:33 PM
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.

Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or