This should work:
new Ext.ux.NumericField({ currencySymbol: '€', alwaysDisplayDecimals: true, thousandSeparator:' ' });
If you set decimalSeparator: ',' it will use comma instead of ".".
This should work:
new Ext.ux.NumericField({ currencySymbol: '€', alwaysDisplayDecimals: true, thousandSeparator:' ' });
If you set decimalSeparator: ',' it will use comma instead of ".".
First of all thank you for such a useful UX,
I used it and it's working fine but I need the filed to render thousand separator on keydown instead of blur event
currently users should first type the number and set focus on next filed to see if he put correct number or not
please advise....
Try setting the key down event and call field.validate(); i'm not remember right now if fields are using a delayed task to validate inputs after some milliseconds, and if not, then i think that will be the right way to do it.
Thank you ....was just what I was dreading having to do myself. Saved me a few hours work, many thanks for this very useful contribution.
Jon
When I use your customized NumericField, I can not submit value from it as "number value", and it is always String type (including the comma separator). Do we have any config to force it to submit integer type instead of String type, or we have to do it manually?
Thank you.
Thank You all
hayy Greivin Britton.. thanks for your extension..
i used EXT 2.3
but it doesnt work for my numberField when i input with bilion price and displaying message "is not valid number"
this is my code..
[IMG]Attachment 33548 [/IMG]Code:
items: [{
xtype: 'numericfield',
fieldLabel: 'Estimated Price',
anchor: '55%',
name: 'cer_estPrice',
id: 'cer_est.Price',
useThousandSeparator: true,
thousandSeparator:'.',
currencySymbol: null,
alwaysDisplayDecimals: false
}]
thanks before..