PDA

View Full Version : Numberfield : use '.' and ',' as separator simultaneously



sky2
10 May 2011, 7:36 AM
I want to use '.' and ',' as separator simultaneously in my number field
But as result i must have number with '.' as separator.
How to do this ?
Tnx.

friend
10 May 2011, 8:30 AM
You'll most likely have to use an Ext.form.TextField, where the regex property can be used for validation and the maskRe property allows a regex expression which restricts what characters can be entered.

brittongr
10 May 2011, 4:54 PM
Take a look to this thread: http://www.sencha.com/forum/showthread.php?125935-Number-field-with-currency-symbol-thousand-separator-with-international-support