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

MaskedEdit, SpinEditor Scientific Notation.

1 Answer 113 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 11 May 2017, 05:07 PM

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.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 12 May 2017, 09:44 AM
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.
Tags
MaskedEditBox
Asked by
Vincent
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or