2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
ProblemWhen EJ controls are rendered with Localization, the error, Uncaught TypeError: Cannot read property 'numberFormat' of null, occurs. This error occurs when the Locale property value is set to the controls and when you fail to refer to the corresponding culture file. SolutionIn order to resolve this issue, refer to the corresponding culture file in the sample. For example, when CurrencyTextbox is taken, you have to render Currency textbox in the View page with the culture fr-FR, as shown in the following code example. View @Html.EJ().CurrencyTextbox("currency").Value("50").Locale("fr-FR")
When Localization is enabled in the controls, then you have to refer to the corresponding culture as shown in the following code example. Layout <link href="@Url.Content("~/Content/ej/web/Default-theme/ej.widgets.all.min.css")" rel="stylesheet"/> <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.easing-1.3.min.js")"></script> <script src="@Url.Content("~/Scripts/jquery.globalize.min.js")"></script> <script src="@Url.Content("~/Scripts/Cultures/globalize.culture.fr-FR.min.js")"></script> <script src="@Url.Content("~/Scripts/ej/ej.web.all.min.js")"></script> <script src="@Url.Content("~/Scripts/ej/ej.unobtrusive.min.js")"></script>
Documentation: http://help.syncfusion.com/ug/js/Documents/localizationsupport.htm |
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.