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

Does NumericTextBox Globalization work?

0 Answers 57 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.
Juan Pablo Perez
Top achievements
Rank 1
Juan Pablo Perez asked on 18 Mar 2012, 09:05 PM
I've trying to use NumericTextBox with my culture (es-ES) and when I put a comma separator for decimals client validation arises as it was not allowed. 

This is the code in the View:
@(Html.Telerik().NumericTextBoxFor(x => x.Price).Spinners(false).DecimalDigits(5).EmptyMessage(""))


I've use the following to in _layout to set the globalization:
@Html.Telerik().ScriptRegistrar().Globalization(true)
    .jQuery(false)
    .Scripts(scripts =>
    scripts.AddGroup("CommonScript", group =>
        group.Add("~/Scripts/jquery.validate.min.js")
            .Add("~/Scripts/jquery.validate.unobtrusive.min.js")
    )
 )

Does anybody know how to solve this problem?

Thanks in advance.
Tags
NumericTextBox
Asked by
Juan Pablo Perez
Top achievements
Rank 1
Share this question
or