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
285
Mask Editor Issue with Time Format nn:nn
posted

Hello,

I am using currently mask editor control where I set the input mask as nn:nn and format string 00:00. The issue is when I put curser between two zeros of hours field and type say 09. It converts 09 to 90.  See the little screenshot below.

I want them to be displayed as 09:00 instead 90:00.

Thanks,

Mayank

Parents
No Data
Reply
  • 21795
    Verified Answer
    Offline posted

    Hello Mayank,

    I tried to reproduce your issue. When I have set UltraMaskEdit’s input mask as nn:nn and format string as 00:00 I was not able to click between front two zeroes if there is no input value. If I input 00:00 in UltraMaskEdit field I was able to click between front two zeroes. In this moment if I press any digit on the keyboard it appears to the right of the cursor, e.g. if I press 9 the field changes from 00:00 to 90:00 – exactly as you said. Please note this is normal behavior of UltraMaskEdit with nnnn mask. When you use nnnn mask it fills the digits you enter from right to left. If the place to the left of cursor is empty or zero and you enter a digit this digit takes the place to the right of cursor.

    If you need to fill the place to the left of cursor you should use 99:99 mask. More about input mask properties you can find following next link http://help.infragistics.com/Help/Doc/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinMaskedEdit.v11.2~Infragistics.Win.UltraWinMaskedEdit.UltraMaskedEdit~InputMask.html

    One more point. Please note if you need to input hours and minutes in your input field you can use hh:mm mask.

    Please let me know if this is what you are looking for or if I am missing something.

Children