Numeric millions mask

Hi!

I have this mask: 

control.MaskEntry.Mask = "999,900,000 $ ";

control.MaskEntry.Culture = new CultureInfo("es-ES");

This is the mask that show in entry: ---.---.--- €

I want a mask to format value between 10000 (ten thousand) and 99999999 millions. For example, while I write value in entry, the mask would change like this:

1-.--- €

10.--- €

10.0-- €

10.00- €

10.000 €

100.000 €

1.000.000 €


It's possible whit some mask? does the control sfmaskededit allow this?


Thanks a lot 

 


5 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team September 6, 2021 01:03 PM UTC

Hi Movilidad, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and we would like to inform that, the SfMaskedEdit having support to enter the text based on the initial mask provided only. It doesn't have support for adding the separator based on the typed text. 
 
Regards, 
Eswaran 
 



PG Pablo Gutiérrez September 7, 2021 06:24 AM UTC

Thanks for your reply. I think with the SfNumericTextBox I can get some of what I want. Thank you!



ET Eswaran Thirugnanasambandam Syncfusion Team September 8, 2021 11:57 AM UTC

Hi Movilidad, 
 
Thanks for your update. 
 
We would like to inform you that, the SfNumericTextBox control allows you to use a group separator while typing numbers. But it does not have support to define a Mask as like SfMaskedEdit control. You can enable group separator using the EnableGroupSeparator property, but it will be updated while un-focusing the control. If you need to show group separator while typing itself means, you have to set GroupSeparatorMode property to “Always,” then the separator will be displayed while typing the numbers also. 
 
Based on your requirement we have prepared a sample and please get the sample from the below link. 
 
Please let us know if you need any further assistance.  
  
Regards, 
Eswaran 



PG Pablo Gutiérrez September 9, 2021 01:53 PM UTC

Thank you very much for the example. I had started to include code just like yours in my app. So this component is the correct one for me. Greetings



ET Eswaran Thirugnanasambandam Syncfusion Team September 9, 2021 06:57 PM UTC

Hi Movilidad, 
 
Thanks for your update. 
 
Let us know if you need further assistance. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon