PDA

View Full Version : how to add window to another window



reddy479
5 Nov 2012, 7:12 AM
I am Having One Window. In That One Button Is Their when we click that button it Displays a new Window. Now i have to close the current window,add new window


My Code is Like This:

my output

39825





{ text:'<b>Actions</b>',
xtype:'actioncolumn',
width:300,
items:[{
icon:'mailtrack/view/resources/images/edit.gif',
iconCls: 'click',
id:'edit_contact',
tooltip:'Edit list',
enableToggle: true,
pressed: true,}]
handler:function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
editcontact.show();
}
},

var editcontact = Ext.create('lib.Commons.Components.Containers.MailtrackWindow', {
width: 500,
height: 500,
resizable:false,
closable:false,
items:[
form,

]
});


var form = Ext.create('lib.Commons.Components.Containers.ZeeKoFormPanel', {
region : 'center',
width:500,
height:400,
id:'formPanel',
title : 'Contact Details',
items : [
{
xtype:'hidden',
name:'id',
id:'formuserid'
},
editcontacts,
addlist,

]
});

var editcontacts = Ext.create('lib.Commons.Components.Standard.MailTrackButton', {
text: 'Edit Contact',
cls : 'buttonPaddings',
handler : function(){

}
});






I Need Window At Add/Remove List Button

tvanzoelen
6 Nov 2012, 2:17 AM
I don't understand your question.

You can popup as many windows as you want. But why not displaying the needed panels on your current window by using a card layout and just switch the panels on button click?