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

[Solved] Grid Culture With Double Value in PercentTextBox

3 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Emmanuel
Top achievements
Rank 1
Emmanuel asked on 27 Aug 2010, 04:14 PM
Hi.

Here is the situation:
I have a Telerik Grid which can perform Ajax Updates / Editing.
Some of the column values in the Grid are binded to the Telerik PercentTextBox control.

My problem occurs when I have double data for cultures other than conventional decimals.
(For example I have commas as decimal seperators instead of decimals.)
When I try to Update the Grid data with Ajax commands, the PercentTextBox inside the grid seems to think that the value entered is invalid because of the comma.

I have PercentTextBox controls outside the Grid which doesn't have this problem, so I would assume that the Grid is the one who is somehow overridding the localization attributes of the PercentTextBox..
Even when I specify the culture name in the Localization attribute of the Grid, the problem remains...

I have read similar messages about this problem in the forums:
(http://www.telerik.com/community/forums/aspnet-mvc/grid/wrong-localization-datatype-double-after-ajax-postback.aspx)

Has this been fixed? Is there a known workaround?

Any help would be appreciated.
Thanks.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Aug 2010, 04:27 PM
Hello Emmanuel,

There was a similar bug indeed where the validation was not culture aware. You can try upgrading to the current official version 2010.2.825. You also need to enable globalization in your page:

<%@ Page Culture="en-US" ..... @>

<% Html.Telerik().ScriptRegistrar().Globalization(true); %>

Set the Culture attribute of the page directive to the required value and then enable globalization for the script registrar.

Regards,
Atanas Korchev
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
0
Emmanuel
Top achievements
Rank 1
answered on 27 Aug 2010, 04:34 PM
Thanks for the quick reply.

This was already being performed and it is not working.

Would you happen to know what version this similar bug was fixed in?
I am currently on version 2010.2.713
0
Atanas Korchev
Telerik team
answered on 30 Aug 2010, 07:54 AM
Hello Emmanuel,

You can try upgrading to the current official release 2010.2.825. It should incorporate that fix.
 If the upgrade does not help I suggest you send us a sample project showing the problem.

Kind regards,
Atanas Korchev
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
Grid
Asked by
Emmanuel
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Emmanuel
Top achievements
Rank 1
Share this question
or