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
    Jun 2007
    Posts
    75
    Vote Rating
    0
    crafter is on a distinguished road

      0  

    Default why does propertygrid not show my fields with null values

    why does propertygrid not show my fields with null values


    Hi All

    I am setting the source of a propertygrid to the records source of an editable grid.

    PHP Code:
       grid.on('cellclick', function(gridrowIndexcolumnIndexe) {
            var 
    record grid.getStore().getAt(rowIndex);  // Get the Record

             
    this.quickInfoGrid = new Ext.grid.PropertyGrid({
                
    renderTo:'properties-grid-container',
                
    autoWidthtrue,
                
    autoScrolltrue,
                
    autoHeighttrue,
                
    enableColumnMovefalse,
                
    stripeRowstrue,
                
    loadMasktrue,
             });

       
    this.quickInfoGrid.setSource(record.json);
       var 
    mysurce this.quickInfoGrid.setSource(record.json);
       
    this.quickInfoGrid.render();

       },
    this); 
    Some of the values set in the grid source is set to null. If a list the values in the debugger, for example, the source looks like this:
    PHP Code:
    json     Object id=48 title=Drfirstname=Benôit surnameANTHEAUME
    active            
    "false"
    byline            ""
    comments    :    null
    date_created 
    null
    designation   
    "Institut de Recherche pour le Développement"
    email             ""
    firstname      "Benôit"
    homepage    null
    id                  
    "48" 
    If I look at the propertygrid source (mySource in the code snippet, it shows the null values.

    In the propertygrid, fields like byline and email will render, but fields like comments, date_created and homepage will not. If I change the value to the non-null value, then the feilds show.

    I cannot figure out why. Do you know what I must do to get the filds to show (other than setting the null values to non-null ones).

    Thank you.

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Vote Rating
    0
    NathanWolf is on a distinguished road

      0  

    Default Still an issue?

    Still an issue?


    I realize this post is very, very old- but I have the same question for extjs4.1

    The behavior is still present, and I'm not sure why. I'd like to be able to use a properties grid to edit properties that may be null.

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Location
    Brno, Czech Republic
    Posts
    35
    Vote Rating
    1
    honzakuchar is on a distinguished road

      0  

    Default


    ...same question... Or we have to do our custom implementation of PropertyGrid?

    and I think problem is in Reader, see this function:
    http://docs.sencha.com/ext-js/4-1/source/Store2.html#Ext-grid-property-Store-method-getReader

    y
    ou will see something like this:

    // private
    isEditableValue: function(val){
    return Ext.isPrimitive(val) || Ext.isDate(val);
    }

Thread Participants: 2