PDA

View Full Version : layout question



j11extjs
24 Oct 2010, 4:17 AM
What is the best layout (i.e. anchor, column, fit) value for an Ext.Panel with an grid (xtype) child item containing many many columns?

Animal
24 Oct 2010, 4:27 AM
Why put the grid inside a Panel anyway?

Use a grid.

steffenk
24 Oct 2010, 7:15 AM
Use a grid. GridPanel is what Nige mean.

j11extjs
25 Oct 2010, 12:25 AM
I use the Ext.Panel as container instead of creating Ext.grid.EditorGridPanel because the former doesn't cause issues with toolbar and bottom bar (bbar) on certain layout configurations.

Animal
25 Oct 2010, 12:47 AM
I use the Ext.Panel as container instead of creating Ext.grid.EditorGridPanel because the former doesn't cause issues with toolbar and bottom bar (bbar) on certain layout configurations.

DO not wrap the GridPanel with another Panel.

Just use the GridPanel.

j11extjs
25 Oct 2010, 12:50 AM
I don't use the GridPanel. What I do use is an editorgrid xtype. This xtype is added to the items: of Ext.Panel's configuration.

Condor
25 Oct 2010, 1:06 AM
Doesn't matter. The fact is that EditorGridPanel IS a Panel, so you don't really need the panel if it is only used to hold that single EditorGridPanel.