Hello Everyone,
I have tried out all the various examples given in the forum and the site but was unsuccessful in getting the 4 panels within the main panel with column layout to be able re-arranged. Kindly review the base code I am using and please suggest a way whereby user can drag / drop a panel onto one of the remaining 3 panels and re-order them.
Paste Bin link : http://erxz.com/pb/12688
Code:
Code:
Ext.onReady(function(){
Ext.QuickTips.init();
var top = new Ext.Panel({
labelAlign: 'top',
frame: false,
bodyStyle: 'padding:5px 5px 0',
border: false,
defaults: {
border: false,
bodyStyle: 'padding:5px 5px 0'
},
width: 600,
items: [{
layout: 'column',
defaults: {
draggable: true,
ddGroup: "organizerDD"
},
items: [{
columnWidth: 1,
layout: 'fit',
items: [{
xtype: 'panel',
html: 'First Name',
title: 'first',
frame: true
}]
}, {
columnWidth: .5,
layout: 'form',
items: [{
xtype: 'panel',
title: 'center 1',
html: 'center 1'
}]
}, {
columnWidth: .5,
layout: 'form',
items: [{
xtype: 'panel',
html: 'center 2',
title: 'center 2'
}]
}, {
columnWidth: 1,
layout: 'fit',
items: [{
xtype: 'panel',
html: 'First Name',
title: 'first',
frame: true
}]
}]
}]
});
top.render(document.body);
})