PDA

View Full Version : Layout to Place to have two grid panels on a panel



surendra_leo
2 Nov 2009, 2:24 PM
Hi,

I wanted to know which is the appropriate layout to have two grid panels on a panel. Attached is a snapshot if I do not use a layout.

Both the grids are generated dynamically and so I cannot specify a fixed height for each of the grid panels.

Below is a sample code , I am using :

" {
xtype: 'panel',
title: 'Test2',
id: 'pnl_Test2',

height: 'auto',
width: 'auto',
split: true,
//layout:'fit',
items: [
{
xtype: 'panel',
id:'TestProgram',
autoScroll: true,
// height: 500,
border:false,
layout:'fit',
items: [
// finalGrid
]
},
{
xtype: 'panel',
id:'TestCode',
//height: 500,
autoScroll: true,
border:false,
layout:'fit',
items: [
// finalGrids
]
}
]
}"

Thanks,
Surendra