We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve "Uncaught TypeError: Cannot read property 'numberFormat' of null " error message?

Platform: ASP.NET MVC |
Control: CurrencyTextbox


When 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.


In 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.




When Localization is enabled in the controls, then you have to refer to the corresponding culture as shown in the following code example.


  <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

Sample: http://www.syncfusion.com/uploads/user/forum/119181/[fileExtension]/CurrencyFRLocale126-967480442.zip

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile