ASP.NET Mask Edit Preview

23 January 2009

imageWant to get the first look at our upcoming ASP.NET Mask editors? Check out this preview image that shows many of the different masks.

Versatile Mask Editors

The new mask will support literals, digit and letter placeholders, ranges, enums, and date format specifiers (yyyy, MM, dd, etc).

Attention To Detail

The R&D team has paid special attention to the details for this control. I had a chance to try an early prototype and the demo is very impressive.

One feature that you'll love is that you can use the keyboard arrow keys or the mouse wheel while editing a value that is an enum or within a range. For example, when clicking on the date mask, you can increment or decrement the parts of the date by using the up or down keys.

No New Control

The mask editor support will be integrated into the ASPxTextEdit control. This means that the ASPxTextBox, ASPxButtonEdit, and ASPxDateEdit will provide the MaskSettings property.

Coming Soon

While the mask features are almost complete, the team still needs to fix some small bugs and implement small mask related features (hints, null text). However, these new ASP.NET mask edit features will be part of the DXperience 2009 volume 1 release!

This release is targeted for March 2009 but a beta will made available to DXperience customers a few weeks before the release. Need more info on DXperience or the new mask features? Feel free to drop me a line here.

20 comment(s)
Christopher Todd


Questions regarding numeric masks.

1) Are numeric lenghts limited by mask lengths? I assume yes, but I just wanted to ask.

2) Are numeric fields padded with characters to represent available positions? (I hope not) i.e. ___,___,___.__

(I hope it is more like ###,###,##0.00 is shown as 0.00 to the user.)

3) Will numeric fields have fixed characters like $, etc?

Thanks for info!

23 January, 2009

Hi Mehul,

Thanks for the update.  Am I correct to assume null text is the same as the watermark feature in ajax control toolkit?

24 January, 2009

Mehul I guess this is the MOST impressive control you have released in the last years. Really, this is so important, having to count on AjaxToolkit is rather awkward these days DevExpress controls almost all my pages.

Let me ask you something: For the date mask, will I be able to set a mask like dd/MM/yyyy?

24 January, 2009
Dave Rowland


Just hoping your considering date formats with masking for countries as in my case being in England, we would format the date 23.01.2009 instead of 01.23.2009

24 January, 2009
Yug Media Resource

Harry, Is Regular Expression (RegEx) supported?

24 January, 2009
Christopher Todd


When you say "hints", are you speaking of Watermarks? I think Heather's assumption would be great! Even if that is not the case, I still think Watermarks should be an added feature.

24 January, 2009
Christopher Todd


Regular Expression is already supported in their validation.

24 January, 2009

Yezzzz....we`ve wated a long time for this!

31 January, 2009
Mark G

Great news!! Keep up the good work guys!

2 February, 2009
Mehul Harry (DevExpress)

Hi Christopher,

1. Yes, of course. I.e., using the mask "9999", it doesn't allow typing more than 4 digits.

2. Unfortunately they do. No changes are made to a mask in the display mode.

Ranges might serve as a solution. Look at the following mask:


It accepts any number between 0 and 9999.99.

Also, we have plans for DisplayFormat feature in future versions.

3. Yes.

2 February, 2009
Mehul Harry (DevExpress)

Hi heather,

We're working on the null text feature right now.

2 February, 2009
Mehul Harry (DevExpress)

Hi Raul,

Yes. And, you get date auto correction performed in the same way as our WinForms mask does it. (to avoid "Feb 30", "April 31", etc)

2 February, 2009
Mehul Harry (DevExpress)

Hi Dave,

Yes, sure.

2 February, 2009
Mehul Harry (DevExpress)


Unfortunately no. There is no chance of implementing RegExp web mask with acceptable performance. The limited speed of JavaScript is the reason.

2 February, 2009
Mehul Harry (DevExpress)


About the hints:

No, hints are optional tooltips for range / enum mask parts.

Watermarks (or null text) are also planned. Smile

2 February, 2009

I fi mention the mask type as '9999'.. it wont allow more than 4 digits.. That is fine.. suppose if i gave only two digits na it automatically added two zeroes.. y?..

10 February, 2009
Aleksey M (DevExpress)

Hi sk,

In your case, the following zero-filling range mask would be perfect:


12 February, 2009

when can we expect a vol 1 release

19 February, 2009
Mehul Harry (DevExpress)

Hi Awake,

The 2009 volume 1 release is targeted for March 2009 time frame.

19 February, 2009

Thanks for sharing!!!

9 June, 2009

Please login or register to post comments.