Numeric Masks

2 posts, 1 answers
  1. Hassan
    Hassan avatar
    135 posts
    Member since:
    Aug 2010

    Posted 17 Jan 2011 Link to this post

    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.

    • Easy Masking for SpinEdit (If possible)
    • Using SpinEdit or MaskEdit, Have custom mask: "1 day" or "10 days"
  2. Answer
    Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 20 Jan 2011 Link to this post

    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.

    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.
Back to Top