PDA

View Full Version : grid-in-panel



proofmoore
13 Dec 2010, 5:19 AM
My user interface is the same with http://dev.extjs.com/deploy/dev/examples/layout/complex.html

I need to show a grid where the 'south panel' supposed to be.(it will open and close optionally). Can I embed a grid in this panel or is there another way to have a grid which is collapsible from the bottom?

Condor
13 Dec 2010, 5:22 AM
A GridPanel IS a panel, so you can use it as the south region directly.

proofmoore
13 Dec 2010, 5:32 AM
I actually tried it but I have a function "function showMyGrid(editable)" which returns a grid.

items: [showMyGrid(true), .. ] //opens the grid in the centre of the page(there grid region is south)

but

items: [new Ext.Panel({ }), .. ] //works fine in the south

proofmoore
13 Dec 2010, 5:55 AM
now it's ok. thank you Condor.