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

Numeric Masks

1 Answer 219 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8 asked on 17 Jan 2011, 11:02 AM
Hello. I was trying setup a currency (C2) and a numeric custom mask (1 day, 5 days etc) for a SpinEdit and found that there is no direct support for masking. Instead, we have to use MaskedEdit for direct masking. Anyhow, I have easily setup the C2 mask for a MaskedEdit but I'm missing the Up/Down buttons and the built it Min/Mav value limits. On the other hand, I need to display a number post-fixed with " days". For example, user will enter "1" but the display will be like "1 days". Again, needed to have a Min/Max values limit here but can't get the desired from SpinEdit.

Objectives:
  • Easy Masking for SpinEdit (If possible)
  • Using SpinEdit or MaskEdit, Have custom mask: "1 day" or "10 days"

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Vasilev
Telerik team
answered on 20 Jan 2011, 01:35 PM
Hello Hassan,

Thank you for writing.

We currently do not support described scenarios. There is not a way to set a format to RadSpinEditor different than the numeric format. RadMaskedEditBox will allow you to setup a custom mask to show a defined number of digits along with some text:
this.radMaskedEditBox1.Mask = "00 D\\ays";
this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;

However, it does not support up/down buttons and you should implement Min and Max values on your own.

Let me know if you have any other questions.

Greetings,
Martin Vasilev
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
MaskedEditBox
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Vasilev
Telerik team
Share this question
or