Code:
var sideMenuSection = new Ext.tree.Panel({
id:'east-panel',
region:rightSide,
collapsible: true,
collapsed: true,
collapseMode: 'mini',
animCollapse: false,
animFloat: false,
header : false,
border: false,
split: true,
width: 240,
minSize: 20,
maxSize: 700,
margins:'0 0 0 0',
layout: 'border',
ctCls: 'GoToThe'+interfaceAlign+'',
autoScroll:true,
columns: [{
id: 'treePagesList',
xtype: 'treecolumn',
viewConfig: {
plugins: {
ptype: 'treeviewdragdrop'
}
},
animate:true,
ddConfig:true,
containerScroll: true,
rootVisible: false,
ctCls: 'GoToThe'+interfaceAlign+'',
store: Ext.create('Ext.data.TreeStore', {
proxy: {
type: 'ajax',
url: hasTopPagesMenuBOO ? '/site/include/newfeel/website3/function/FastManagePagesV9.asp?menuUpNavBOO=1' : hasSidePagesMenuBOO ? '/site/include/newfeel/website3/function/FastManagePagesV9.asp?menuSideNavBOO=1' : '/site/include/newfeel/website3/function/FastManagePagesV9.asp?menuNotShowBOO=1'
},
root: {
id:'root',
text: 'Pages',
expanded:false
}
})
},{
xtype: 'actioncolumn',
items: [{
icon: 'app/resources/images/cog_edit.png',
// Use a URL in the icon config
tooltip: 'Edit',
handler: function (grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Edit " + rec.get('firstname'));
}
}, {
icon: 'app/resources/images/delete.png',
tooltip: 'Delete',
handler: function (grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Terminate " + rec.get('firstname'));
}
}]
}]
});