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
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