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
470
XamCurrencyEditor problem
posted

hi

I am using XamCurrencyEditor control and the mask is Mask="{}{currency:6.2:c}" the problem that i am facing is that I have to enter three digits like 100 or 1.00 to get 1 and this is not the way i want  want it to display 1 if i enter 1.Pls give me any idea for this problem.

Thanks,

Rehman Mansoor 

 

 


 

Parents
  • 8576
    Verified Answer
    Offline posted
    Hi Rehman -
     
    The mask you should be using so that you can enter just the '1' is:
     
    Mask="{}{currency:6.2}"
     
    The :c portion of the mask is optional and it specifies that the inputting of the value should be done continuously across fraction and integer portions. For example, with :c in the mask, in order to enter 12.34 the user types in "1234". Notice that the decimal separator character is missing. This alleviates the user from having to type in the decimal separator.
     
    Joe
     
Reply Children
No Data