Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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
    3
    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()"
    -->

  7. #7
    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


    the code in NumberField (in the Ext 1.1.1 official download) has already been fixed.

    it now says this:
    Code:
        getValue : function(){
            return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this)));
        },
    
        // private
        parseValue : function(value){
            value = parseFloat(String(value).replace(this.decimalSeparator, "."));
            return isNaN(value) ? '' : value;
        },
    p.s. the code you copied and pasted is from Ext.form.Field.
    -->

  8. #8
    Ext User
    Join Date
    Sep 2008
    Posts
    5
    Vote Rating
    0
    achu_vlr is on a distinguished road

      0  

    Default


    Still the same problem exists. I am using ext 2.0
    -->

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

      0  

    Default


    Quote Originally Posted by achu_vlr View Post
    Still the same problem exists. I am using ext 2.0
    This is a 1.x issue over a year old. If you still see in a issue in the 2.2 code, please create a new thread in 2.x Bugs with a test case per the link in my sig.
    -->