Hybrid View

  1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    4
    Vote Rating
    0
    surveyganga is on a distinguished road

      0  

    Default [Closed]Grid returning empty string for a cell with value 0

    [Closed]Grid returning empty string for a cell with value 0


    I have a grid with a NumberField editor for one of the columns. When I enter 0 in the cell it renders correctly but the datasource contains an empty string (""). I am using Ext1.1 rc1 then I switched back to the old version Ext1.01a and it works just fine. Is this a known bug in rc1? Is there a work around. I tried searching the forum but turned up nothing. Can some body throw some light on this one.

    Ok. Found out another thread saying that its a bug http://extjs.com/forum/showthread.ph...ht=numberfield
    Last edited by surveyganga; 26 Jul 2007 at 10:26 AM. Reason: Reason
    -->

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Confirmed - I see this with the EditGrid example price column in 1.1RC1. Moving to bugs.
    -->

  3. #3
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    from the same thread above:
    Quote Originally Posted by jack.slocum View Post
    This is fixed in SVN and will be in the next release.
    -->

  4. #4
    Sencha User
    Join Date
    Jul 2007
    Posts
    4
    Vote Rating
    0
    arisbartee is on a distinguished road

      0  

    Default Data store zero value matches empty string

    Data store zero value matches empty string


    I'm using prototype 1.5.1. But I also tested it with ext.base adapter.
    The value for Store.getModifiedRecords()[0].data["ID"] is zero. However it matches the empty string ("" or ''). This was reportedly fixed for 1.1.1 as per the release notes.
    -->

  5. #5
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    pls post a complete test case (html file and all).
    -->

  6. #6
    Ext User
    Join Date
    Jul 2007
    Posts
    36
    Vote Rating
    0
    John Holmes is on a distinguished road

      0  

    Default


    Here an extraction from the Ext.debug.js from the Ext.form.Field object

    Code:
    getValue : function(){
         return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this)));
    },
    
    parseValue : function(value){
         return parseFloat(String(value).replace(this.decimalSeparator, ".")) || '';
    },
    The line of code...

    Code:
         return parseFloat(String(value).replace(this.decimalSeparator, ".")) || '';
    ..of the "parseValue" function force to return an empty value from the method call "Ext.form.Field.getValue()"
    -->

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."