View Full Version : PropertyGrid not loading in Accordion

22 Jun 2009, 12:08 AM
I'm trying to load Property Grid in Accordion but page is not rendering. Following is the code

title: 'East',
region: 'east',
collapsible: true,
width: 180,
minSize: 100,
maxSize: 250,
margins: '5 5 5 0',
cmargins: '5 5 5 5',
split: true,
items: [{
layout: 'fit',
border :false,
items: grid
}, new Ext.grid.PropertyGrid({
title: "properties",
viewConfig: {
forceFit: true
source: {
"(name)": "My Object",
"Created": new Date(Date.parse('10/15/2006')),
"Available": false,
"Version": .01,
"Description": "A test object"

I tried all kind of techniques but failed.

22 Jun 2009, 12:26 AM
PropertyGrid has a problem: It accesses the DOM in the Ext.grid.PropertyColumnModel constructor.

This means that you'll have to wait for onReady before you can create your config object.

Another option would be to implement this fix (http://www.extjs.com/forum/showthread.php?t=72023).

22 Jun 2009, 12:51 AM
I tried also to put everything under ext.onReady but still it's not rendering. The example of border layout have property grid in that. I tried to follow-up same but it's not rendering.

22 Jun 2009, 12:54 AM
What do you mean by 'not rendering'?

ps. Accordion layout also has autoWidth:true by default (you could try if changing that (http://extjs.com/forum/showthread.php?t=65518) helps).