Study/Ext JS2011. 5. 20. 17:56
/*
Example.TestPropertyGrid = new Ext.grid.PropertyGrid({
    nameText: '입력항목',
    width: 300,
    autoHeight: true,
    viewConfig: {
        forceFit: true
    }
});

Example.TestPropertyGrid.setSource({
    '갱신여부': '신규',
    '승인여부': '예'
});
*/

/*
var propertyGrid = new Ext.grid.PropertyGrid({
    title: 'Properties Grid',
    id: 'propGrid',
    autoHeight: true,
    width: 300,
    viewConfig: {
        forceFit: true
    },
//    renderTo: 'grid-ct',
    source: {} //initialize source config object
});

var propertyStore = new Ext.data.JsonStore({
    autoLoad: true,  //autoload the data
    url: 'getproperties.php',
    root: 'props',
    fields: ['First name', 'Last name', 'E-mail'],
    listeners: {
        load: {
            fn: function (store, records, options) {
                // get the property grid component
                var propGrid = Ext.getCmp('propGrid');
                // make sure the property grid exists
                if (propGrid) {
                    // populate the property grid with store data
                    propGrid.setSource(store.getAt(0).data);
                }
            }
        }
    }
}); 
*/
Posted by 굥쓰