1. #21
    Sencha User
    Join Date
    Sep 2010
    Posts
    1
    Vote Rating
    0
    howgoo is on a distinguished road

      0  

    Default


    Quote Originally Posted by mysticav View Post
    Very disappointed to find that it does not support format for decimals.

    I'm looking for an spreadsheet field behavior, where I can define a format decimal precision and the real decimal precision.

    Example:
    For the real value I would enter: 33.33333333
    The displayed value would be: $ 33.33

    but then, the raw value will still be: 33.3333333

    This class doesn't keep the real value.

    So I hope the creator improves it, or somebody collaborate with that functionality.

    Thanks.
    extjs333333333.jpg

    When I enter the value 33.33333333,The results were not what you(@mysticav) said that.
    I user #14 @pmiguelmartins 's code.

  2. #22
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    You might want to switch

    Code:
    value = value.toString().replace(this.currencySymbol + ' ', '');
    to

    Code:
    value = value.toString().replace(this.currencySymbol , '').trim();
    as to allow parsing the field value a bit better in the case the value is submitted as $2,000.00 (no space)

    edit: thanks!

  3. #23
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    Is anyone else having the problem where you type 123 rapidly in the field and it ends up looking like this 1.0023.

    It seems that the field will autopad the decimals on first keydown but then leave the cursor at the end of the field resulting in the first button press + decimals + remaining button presses..

  4. #24
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    Nevermind this seems to be a bug with 4.1

  5. #25
    Sencha User
    Join Date
    May 2014
    Posts
    1
    Vote Rating
    0
    tony.maroun is on a distinguished road

      0  

    Default


    It Works beautifully. Thanks

  6. #26
    Sencha User
    Join Date
    Jul 2014
    Posts
    2
    Vote Rating
    0
    phaiemko123 is on a distinguished road

      0  

    Default


    it does not work, anybody can help me. Thanks

  7. #27
    Sencha User
    Join Date
    Apr 2014
    Posts
    3
    Vote Rating
    0
    mkkguru is on a distinguished road

      0  

    Default


    Can you please let me know how to validate below type of validations in functions. var reqDependency20_1=((Ext.getCmp('i_7_2158_id') != undefined)?((((Ext.getCmp('i_7_559_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_1846_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_577_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2158_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2295_id').getInputValueCT()+'') == '')) ? true : (((Ext.getCmp('i_7_565_id').getInputValueCT()+'') != '') ? true (Ext.getCmp('i_80_1068_id').getInputValueCT()+'') == 'Audited')?true(Ext.getCmp('i_7_559_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_565_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_1846_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2158_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2295_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_577_id').getInputValueCT()+'') == '')))))((Ext.getCmp('i_7_559_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_1846_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_577_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2295_id').getInputValueCT()+'') == '')) ? true : (((Ext.getCmp('i_7_565_id').getInputValueCT()+'') != '')? true (Ext.getCmp('i_80_1068_id').getInputValueCT()+'') == 'Audited')?true(Ext.getCmp('i_7_559_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_565_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_1846_id').getInputValueCT()+'') == '')&&((Ext.getCmp('i_7_2295_id').getInputValueCT()+'') == '')&& ((Ext.getCmp('i_7_577_id').getInputValueCT()+'') == '')))))); Thanks in advance