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

Can I turn off globalization for one control?

1 Answer 49 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave Hayward
Top achievements
Rank 1
Dave Hayward asked on 25 Jun 2012, 04:08 PM
I am using the Telerik MVC controls throughout my site and globalization is enabled and functioning properly. The site provides a CurrencyTextBox for the user to enter a value, and the customer wants to force all users to enter their amounts in dollars.

The currency symbol and decimal symbol can be controlled, but in many cultured the currency symbol is placed on the right side of the edit control. This is an issue for the customer who wants it to be displayed on the left, which is consistent with cultures that use dollars.

Is there any way to disable globalization (or force one specific culture) on just this one control?

Alternatively is there a way to control the position of the currency symbol?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 28 Jun 2012, 03:29 PM
Hello Dave,

The globalization cannot be disabled or enabled for a single control but you can use the PositivePatternIndex configuration method to show the currency symbol on the left e.g.

Html.Telerik().CurrencyTextBox().Name("currency")
        .CurrencySymbol("$")
        .PositivePatternIndex(0)

Kind regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
NumericTextBox
Asked by
Dave Hayward
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or