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

[Solved] Error within telerik.common.js

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oscar
Top achievements
Rank 1
Oscar asked on 13 Jan 2012, 10:07 AM
I have found that there is an error within this file. An exception may not be thrown always, but if you try to call the function manually and pass as positive argument null, you will see it.
positive = positive || positive === 0 ? positive : cultureInfo[type + 'positive'];

In case that the type is "numeric" and positive is null it will look for a "numericpositive" key in the cultureInfo. The problem is that this key does not exist and so positive gets a null value and the formatNumber function throws an exception later.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 16 Jan 2012, 10:11 AM
Hello Oscar,

 
$.telerik.formatNumber will throw exception if you try to format number using standard numeric format ("n", "p", "c") and pass symbol value withour positive pattern. This is expected, because the formatNumber requires positive pattern number when using symbol. Let me know if I am missing something.

Regards,
Georgi Krustev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
General Discussions
Asked by
Oscar
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or