Hi All
I am setting the source of a propertygrid to the records source of an editable grid.
PHP Code:
grid.on('cellclick', function(grid, rowIndex, columnIndex, e) {
var record = grid.getStore().getAt(rowIndex); // Get the Record
this.quickInfoGrid = new Ext.grid.PropertyGrid({
renderTo:'properties-grid-container',
autoWidth: true,
autoScroll: true,
autoHeight: true,
enableColumnMove: false,
stripeRows: true,
loadMask: true,
});
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=Dr. firstname=Benôit surname= ANTHEAUME
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.