I need to use the control 'NumberTextBox' for a negative number. (eg 0.0000001) but this does not work it makes the Double.ToString() gives '1 e-07 'and write '-7' in the textbox.
Is there a solution?
@Html.Telerik().NumericTextBox().Name("MyValue").Spinners(false).DecimalDigits(10).MaxValue(9999999999999).MinValue(-9999999999999).DecimalSeparator(System.Threading.Thread.CurrentThread.CurrentUICulture.NumberFormat.NumberDecimalSeparator).NumberGroupSeparator(System.Threading.Thread.CurrentThread.CurrentUICulture.NumberFormat.NumberGroupSeparator).Value(Model.Value).ClientEvents(e => e.OnChange("OnChangeCallback"))Thank you.
7 Answers, 1 is accepted
Thank you for pointing this issue to us. I am glad to inform you that the issue is already addressed and the fix will be available for the next internal build. For your convenience I have attached the fixed JS files.
As a gratitude for your involvement I have updated your Telerik points.
Regards,
the Telerik team
Thank you.
Can you tell me which version of jquery must be installed. For I receives an error of type 'ToLowerCase'
Error related with "ToLowerCase" is not related with jQuery. Did the new JS files cause this issue?
Georgi Krustev
the Telerik team
Hello again,
I updated Telerik with the last version available and it is better but I still have the same problem in some cases.
When I enter the number 0.00000001, it is correct (see first image 001.png).
But, just after encoding the value, if I re-enter inside the console (with a click of the mouse for example) then the value is transformed into 1e-07 (see second image 002.png).
And it is, unfortunately, the 1e-07 that is always sent to my .net controller method.
Thank you.
We was able to observe the aforementioned behavior. The good news is that we was able to address this issue and the fixed JS file is attached to this message. Give it a try and let me know if I am missing something.
Georgi Krustev
the Telerik team