Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > Very small negative number
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Answered Very small negative number

Feed from this thread
  • francois avatar

    Posted on Dec 2, 2011 (permalink)

    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.

  • Georgi Krustev Georgi Krustev admin's avatar

    Posted on Dec 6, 2011 (permalink)

    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
    Attached files

  • francois avatar

    Posted on Dec 7, 2011 (permalink)


    Thank you.

    Can you tell me which version of jquery must be installed.  For I receives an error of type 'ToLowerCase'

  • Georgi Krustev Georgi Krustev admin's avatar

    Posted on Dec 9, 2011 (permalink)

    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

  • francois avatar

    Posted on Dec 12, 2011 (permalink)

    hello,

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

    Attached files

  • francois avatar

    Posted on Dec 12, 2011 (permalink)

    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.

    Attached files

  • Answer Georgi Krustev Georgi Krustev admin's avatar

    Posted on Dec 15, 2011 (permalink)

    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

  • francois avatar

    Posted on Dec 15, 2011 (permalink)

    Thank you very much

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > Very small negative number
Related resources for "Very small negative number"

ASP.NET MVC NumericTextBox Features  |  Documentation  |  Demos  |  Telerik TV ]