Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1160
Can't get a XamMaskedEditor Mask of "{}{number:01-12} {number:00-99}" to work correctly
posted

Hi,

I need an edit mask that allows the user to enter a month and year in the format of "mm yy". (effectively a 2 digit month with a leading zero and a 2 digit year) 

I've tried the following:

<igEditors:XamMaskedEditor Name="xmeEdition"    Mask="{}{number:01-12} {number:00-99}"    Width="75"    Margin="5"    DisplayMode="IncludeBoth"    AllowShiftingAcrossSections="False"     />

but entering 01 10 (as in January, 2010) causes the leading zero to be ignored and the entered data slides left to become 11 _0. (see enclosed png).

How do I prevent this from happening?  Are there better ways to do this?

Thanks!

Glenn Les

 

Parents Reply Children