1. #31
    Sencha User
    Join Date
    Jul 2011
    Posts
    6
    Vote Rating
    0
    lhidalgo is on a distinguished road

      0  

    Default


    I've searched again and again and i d'ont find where we can use Formatter with numberfield. Can someone explain what Animal said in the third post ?

  2. #32
    Sencha User clesquir's Avatar
    Join Date
    Jun 2009
    Posts
    28
    Vote Rating
    0
    clesquir is on a distinguished road

      0  

    Default


    Quote Originally Posted by IvanJ View Post
    BTW Animal, saying "this is all in ExtJS 4" doesn't really help anyone dealing with this in ExtJS 3
    +1 to that!

  3. #33
    Sencha User
    Join Date
    Jul 2011
    Posts
    6
    Vote Rating
    0
    lhidalgo is on a distinguished road

      0  

    Question


    Can we have a reply from the Ext team ? If it exist we can use it, else we have to do our own extension ... But please let us know clearly if we can use or not a formater in numberfield with extjs 4.

    Thanks in advance

  4. #34
    Sencha User
    Join Date
    Jun 2008
    Posts
    14
    Vote Rating
    0
    linuxguy2001 is on a distinguished road

      0  

    Default


    Quote Originally Posted by IvanJ View Post
    I just tried using this in a grideditor and none of the features work

    BTW Animal, saying "this is all in ExtJS 4" doesn't really help anyone dealing with this in ExtJS 3
    This is so accurate, extjs support to a T (lack of).

  5. #35
    Sencha User
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    58
    Vote Rating
    2
    HTK is on a distinguished road

      0  

    Default


    Reading through the whole forum here shows that Animal is very good in giving poor answers. Shame that there is no answer for month´s now!

  6. #36
    Sencha User brittongr's Avatar
    Join Date
    Jun 2007
    Location
    Panama
    Posts
    109
    Vote Rating
    3
    brittongr is on a distinguished road

      0  

    Default


    These things are not built-in in extjs4 number field, an extension must be written, i haven't had the chance to play with extjs4 because i'm stuck with extjs3 but i will try to provide an extension these days... i hope to start tonight.

    About Animal post i think he was just refering the functions in Ext.util.Format that provide an easy way to apply the format.
    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.

  7. #37
    Sencha User brittongr's Avatar
    Join Date
    Jun 2007
    Location
    Panama
    Posts
    109
    Vote Rating
    3
    brittongr is on a distinguished road

      0  

    Default


    Hi, i just finished the extension using ExtJS4 basically just a few things changed from the previous version.

    I haven't tested with all combinations like the other one i posted before and maybe you could help me with that and if you find an issue, you can let me know to work in that today.

    I have to say i tried to use Ext.util.Format but it doesn't allow to apply all the options the extension provide, so i still prefer to use my own function to format the value. One property that is missing from the extension is "currencyAtEnd" requested before but i will add it later (tomorrow after testing with all combinations).

    Hope it helps!
    Attached Files
    Last edited by brittongr; 20 Sep 2011 at 7:10 AM. Reason: Just removed my name from the post
    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.

  8. #38
    Sencha User
    Join Date
    Jun 2008
    Posts
    14
    Vote Rating
    0
    linuxguy2001 is on a distinguished road

      0  

    Thumbs up


    Another reason why open source software is so great: when the software provider fails to help the community, a community member steps in and fills the void. Thank you brittongr for going out of your way and using your time to help folks out.

  9. #39
    Sencha User brittongr's Avatar
    Join Date
    Jun 2007
    Location
    Panama
    Posts
    109
    Vote Rating
    3
    brittongr is on a distinguished road

      1  

    Default


    Ok, now is tested, i did some corrections and you can download it from this thread i just posted:

    http://www.sencha.com/forum/showthread.php?147962-Number-Field-with-currency-symbol-thousand-separator-amp-international-support-ExtJS4


    I'm glad to help linuxguy2011.
    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.

  10. #40
    Sencha User
    Join Date
    Sep 2011
    Posts
    7
    Vote Rating
    0
    ashwin.parmar is on a distinguished road

      0  

    Default NumberField Input Dot (.) Automatically Converted to Comma (,)

    NumberField Input Dot (.) Automatically Converted to Comma (,)


    Hi, I am using Ext.ux.NumberField which is provide the International Support of Currency Format.

    http://www.sencha.com/forum/showthre...tional-support

    I have Create this code:

    Code:
    new Ext.ux.NumericField({
                       currencySymbol: '€',
                        decimalPrecision:2,
                        allowDecimals:true,
                        alwaysDisplayDecimals: true,
                        useThousandSeparator : true,
                        thousandSeparator:' ',
                        decimalSeparator :','
                    })
    My Question is I want to Input decimalSeparator as dot ( . ) and it is automatically converted to comma ( , )
    is it possible ?

    Please reply
    Thanks in Advance.

Similar Threads

  1. Currency / money field with selectable currency
    By simplessus in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 22 Jan 2011, 3:24 AM
  2. Number Field with currency formatting
    By JSCoder in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 2 Sep 2009, 9:39 AM
  3. Currency Symbol in Ext.ND views
    By cujo13 in forum Ext.nd for Notes/Domino
    Replies: 2
    Last Post: 12 Mar 2009, 6:55 AM
  4. [FIXED] LabelField shows ":" separator symbol
    By Grandiosa in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 8 Jun 2008, 8:26 PM

Thread Participants: 22

Tags for this Thread