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

[Solved] RadGrid, EditFormTemplate, ObjectDataSource, Decimal type

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 12 Jun 2009, 03:51 PM
Hi

If I use an EditFormTemplate within RadGrid with a non-English culture connected to an ObjectDataSource I cannot update values of decimal type.

The error message I recieve is as follows:
Cannot convert value 3,45 to type Decimal.

The problem (as far as I can see) is that the RadGrid ignores the culture settings that I have set for my asp.net page.
Instead of 3,45 RadGrid awaits 3.45.

I didn't find a property like Culture within RadGrid to finetune this process.

Can you please help me out ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 15 Jun 2009, 04:13 PM
Hi Peter,

To edit values in non-English culture, both your data source and your inputs should accept values in one and the same culture. If you are inserting non-English culture values in your data source, you need to make sure your entire web page where your editing takes place is setup to use the corresponding culture.

Setting cultures in ASP.NET pages is described in the following documentation article from the MSDN:

How to: Set the Culture and UI Culture for ASP.NET Web Page Globalization

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or