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

[Solved] Very small negative number

7 Answers 42 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.
francois
Top achievements
Rank 1
francois asked on 02 Dec 2011, 03:23 PM
Hello,

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

Sort by
0
Georgi Krustev
Telerik team
answered on 06 Dec 2011, 02:41 PM
Hello Francois,

 
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,

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
0
francois
Top achievements
Rank 1
answered on 07 Dec 2011, 03:00 PM

Thank you.

Can you tell me which version of jquery must be installed.  For I receives an error of type 'ToLowerCase'
0
Georgi Krustev
Telerik team
answered on 09 Dec 2011, 03:14 PM
Hello Francois,

 
Error related with "ToLowerCase" is not related with jQuery. Did the new JS files cause this issue?

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
0
francois
Top achievements
Rank 1
answered on 12 Dec 2011, 04:36 PM
hello,

this error comes from 'telerik.textbox.min.js' line 1 

0
francois
Top achievements
Rank 1
answered on 12 Dec 2011, 05:53 PM

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.

0
Accepted
Georgi Krustev
Telerik team
answered on 15 Dec 2011, 02:44 PM
Hello Francois,

 
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.

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
0
francois
Top achievements
Rank 1
answered on 15 Dec 2011, 03:20 PM
Thank you very much
Tags
NumericTextBox
Asked by
francois
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
francois
Top achievements
Rank 1
Share this question
or