PDA

View Full Version : Ext js 2.0 complex layout question



deus3X
26 Oct 2007, 8:52 AM
hi,

There's in the layout example a property grid in the right panel. You can display the values by alphabetical order by clicking on the name tab. What about the order you want? I don't find any clue about that in the doc.

Thank you for your support

DragonFist
26 Oct 2007, 9:04 AM
There are a couple of threads about this.

At this time, the PropertyGrid only supports sorted properties.

You can try this though, it worked for me:


propGrid.store.sortInfo = null;
propGrid.setSource(propSrc);

found it here:

http://extjs.com/forum/showthread.php?t=14901

deus3X
26 Oct 2007, 9:27 AM
thank you but you put those two line in PropertyGrid.js itself? i don't see any ref propGrid.store anywhere

DragonFist
26 Oct 2007, 10:03 AM
"PropGrid" is an example variable set to an instance of a property grid.

The "store" is the Ext.data.Store assigned to the grid. May not be documented but it is available as a property of the grid itself.

Hopefully, we'll have a config setting to handle this but right now, this hack will prevent the sort as the datastore doesn't have any info to sort on when you set the source.