-
12 Oct 2011 9:39 AM #41
This should work:
new Ext.ux.NumericField({ currencySymbol: '€', alwaysDisplayDecimals: true, thousandSeparator:' ' });
If you set decimalSeparator: ',' it will use comma instead of ".".Greivin Britton
My Extensions:
Ext.ux.NumericField: Number field with support for currencySymbol, thousand separator, international...
Ext.ux.PagerSizeSelector: A plugin that allows the change page size with just one click.
Ext.ux.FieldAccess: A plugin to let the user know which fields are editable.
-
23 Jan 2012 11:50 AM #42
format number at keydown instead of blur
format number at keydown instead of blur
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....
-
23 Jan 2012 7:41 PM #43
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.
Greivin Britton
My Extensions:
Ext.ux.NumericField: Number field with support for currencySymbol, thousand separator, international...
Ext.ux.PagerSizeSelector: A plugin that allows the change page size with just one click.
Ext.ux.FieldAccess: A plugin to let the user know which fields are editable.
-
30 Jan 2012 7:28 AM #44
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
-
21 Feb 2012 8:52 PM #45
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.
-
2 Apr 2012 9:21 PM #46
-
3 Apr 2012 8:49 PM #47
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]numberfield.GIF [/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..
-
3 Jan 2013 2:22 PM #48
Congratulations Britto!!!!!
Congratulations Britto!!!!!
Similar Threads
-
Currency / money field with selectable currency
By simplessus in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 22 Jan 2011, 3:24 AM -
Number Field with currency formatting
By JSCoder in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 2 Sep 2009, 9:39 AM -
Currency Symbol in Ext.ND views
By cujo13 in forum Ext.nd for Notes/DominoReplies: 2Last Post: 12 Mar 2009, 6:55 AM -
[FIXED] LabelField shows ":" separator symbol
By Grandiosa in forum Ext GWT: Bugs (1.x)Replies: 2Last Post: 8 Jun 2008, 8:26 PM



Reply With Quote