MaskedEdit, SpinEditor Scientific Notation.

2 posts, 0 answers
  1. Vincent
    Vincent avatar
    5 posts
    Member since:
    Dec 2016

    Posted 11 May Link to this post

    Hello,

     

    I need to have in both gridview and classic editor a user input to read decimal numbers (type float, double, decimal ...it does not matter) .

    For the moment i m using RadSpinEditor and it is ok for values like 123.45 but sometimes the user can enter values like 0.000000150.

    For the moment i m changing the number of decimal in the RadSpinEditor when the user have to enter very little values.

    RadSpinEditor is very good for my needs because it has a maximum and minimal value and i use them.

    RadSpinEditor can display in Hexadecimal format.

    What is the best way to have the scientific format with RadSpinEditor?

     

    thanks

     

    Vincent.

  2. Hristo
    Admin
    Hristo avatar
    1023 posts

    Posted 12 May Link to this post

    Hi Vincent,

    Thank you for writing.

    RadMaskedEditBox supports the standard .NET numeric format strings. You can specify the Mask and MaskType properties of the control to specify what numbers are allowed. More information is available here: https://msdn.microsoft.com/en-us/library/dwhawy9k.aspx.

    As for RadSpinEditor, it supports hexadecimal input and you can enable it by setting the RadSpinEditor.Hexadecimal property to true. I am also sending you a sample project with an additional implementation to show the hexadecimal values with leading 0x.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top