Code:
var viewport = new Ext.Viewport({
layout: 'border',
items: [
// create instance immediately
new Ext.BoxComponent({
region: 'north',
height: 32, // give north and south regions a height
autoEl: {
tag: 'div',
html:'<p>north - generally for menus, toolbars and/or advertisements</p>'
}
}), {
region: 'south',
contentEl: 'south',
split: true,
height: 100,
minSize: 100,
maxSize: 200,
collapsible: true,
title: 'South',
margins: '0 0 0 0'
}, {
region: 'west',
id: 'west-panel',
title: 'West',
split: true,
width: '20%',
collapsible: true,
margins: '0 0 0 5',
layout: {
type: 'accordion',
animate: true
},
//autoScroll:true,
items: [{
title: 'Navigation',
iconCls: 'nav',
autoScroll:true,
layout: {
type:'vbox',
padding:'5',
align:'stretch'
},
//bodyStyle:'padding:5px 5px 5px',
items:[
{
border: false,
frame:false,
anchor: '95%',
items:[combo1]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[combo2]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[Acctgroupcombo]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[subAcctcombo]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[orLbl]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[acTextFld]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[Futurescombo]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[exchangeCombo]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
items:[combo6]
},{
xtype:'spacer',
height:1
},{
xtype:'fieldset',
autoHeight:true,
items:[{
xtype: 'radiogroup',
fieldLabel: 'Search<br>By ',
columns: 2,
align:'right',
items: [
{boxLabel: 'ABC', name: 'rb-vert', inputValue: 1},
{boxLabel: 'DEF', name: 'rb-vert', inputValue: 2, checked: true},
{boxLabel: 'GHI', name: 'rb-vert', inputValue: 3},
{boxLabel: 'JKL', name: 'rb-vert', inputValue: 4}
]
},{
xtype:'textfield',
fieldLabel: 'Business',
name: 'business',anchor: '95%'
},{
xtype:'textfield',
fieldLabel: 'Price',
name: 'mobile',anchor: '95%'
},{
xtype:'textfield',
fieldLabel: 'Delivery',
name: 'fax',anchor: '95%'
}]
},{
xtype:'label',
text:'View:'
},{
xtype: 'radiogroup',
columns: 2,
items: [
{boxLabel: 'View1', name: 'View1', inputValue: 1},
{boxLabel: 'View2', name: 'View2', inputValue: 2, checked: true}
]
},{
xtype:'label',
text:'Data:'
},{
xtype: 'radiogroup',
columns: 2,
items: [
{boxLabel: 'Export', name: 'export', inputValue: 1},
{boxLabel: 'Display', name: 'display', inputValue: 2, checked: true}
]
},{
xtype:'spacer',
height:1
},{
border: false,
frame:false,
anchor: '95%',
items:[comboboxSearch]
},{
xtype:'spacer',
height:1
},{
layout:'hbox',
layoutConfig: {
padding:'5',
align:'middle'
},
border:false,
defaults:{margins:'0 5 0 0'},
items:[{
xtype:'button',
text: 'Save',
flex:1
},{
xtype:'button',
text: 'Submit',
flex:1
},{
xtype:'button',
text: 'Clear',
flex:1
}]
}]
}, {
title: 'Settings',
html: '<p>Some settings in here.</p>',
border: false,
iconCls: 'settings'
}]
},{
region: 'center', // a center region is ALWAYS required for border layout
layout:'anchor',
anchorSize: {width:800, height:600},
items:[{
title:'Item 1',
id: 'pnlResutView',
title: 'Result View',
contentEl:'treegriddata',
collapsible: true,
anchor:'100% 100%'
}]
}
]
});