PDA

View Full Version : Adding a Panel into another Panel



mail2hkrish
22 Dec 2009, 2:58 AM
Hi All,

How to add a Small Panel (basically called as Portlets in our case) into another Panel (called as Ground) , on click of its Header and Body.

Please let us know how to achieve this. Appreciate your views on this.

Thanks in Advance

Regards,
HKRISH

22 Dec 2009, 4:08 AM
Plese do not create polls JUST to ask questions. It's rather silly and unecessary.

mail2hkrish
22 Dec 2009, 9:46 PM
Apologizes , i am novice to this forum.

Will make sure i wont repeat.

Thank You.

Condor
23 Dec 2009, 7:29 AM
Hi All,

How to add a Small Panel (basically called as Portlets in our case) into another Panel (called as Ground) , on click of its Header and Body.

Please let us know how to achieve this. Appreciate your views on this.

Thanks in Advance

Regards,
HKRISH

Silly example:

new Ext.Panel({
title: 'Ground',
width: 500,
height: 500,
autoScroll: true,
listeners: {
render: function(c){
c.getEl().on('click', function(){
c.add({
title: 'Portlet',
width: 100,
height: 100
});
c.doLayout();
});
}
}
}).render(Ext.getBody());

mail2hkrish
4 Jan 2010, 11:22 PM
Thanks Condor it worked.

HKRISH