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

[Solved] Decimal separator

1 Answer 205 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
joe castle
Top achievements
Rank 1
joe castle asked on 17 Feb 2010, 07:02 PM
Hi,

I have Norwegian regional settings, where the decimal separator is comma, not ".". The grid shows correctly formatted data when loading from db, but when editing, it basically ignores the regional setting and expects "." as decimal separator. It does not throw error, but If I register "123,45" it saves 12345 (works correctly when typing 123.45).

Thanks,
joe

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 19 Feb 2010, 01:52 PM
Hi joe castle,

You can use one of the following solutions:

#1. Set "Language" property of RadGridView which will affect the entire grid, with a code like this:

<telerik:RadGridView Language="no" ... />

#2. Or you can set ConverterCulture parameter to the DataMemberBinding property of the column, which will affect only that column:

<telerik:GridViewDataColumn DataMemberBinding={Binding Number, ConverterCulture="no"} />


Kind regards,
Nedyalko Nikolov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
joe castle
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or