listeners : {
itemcontextmenu : function( grid, record, item, index, event){
event.stopEvent();
var menu = Ext.create('Ext.menu.Menu',{
items: [{
text: 'Export to XLS',
iconCls: 'export',
disabled : false,
handler: function() {
var tgl = Ext.getCmp('tgl').rawValue,
branch = Ext.getCmp('branch_id').getValue();
status = Ext.getCmp('status').getValue();
Ext.getBody().mask('Creating File, please wait...', 'x-mask-loading');
Ext.getBody().createChild({
tag: 'iframe',
cls: 'x-hidden',
onload: 'Ext.getBody().unmask(); var t = Ext.get(this); ',
src: 'services/sms_monitoring_installasi/export?tgl='+tgl+'&branch='+branch+'&status='+status,
});
}
}]
});
menu.showAt(event.xy);
}
},
{ border:false, frame:false, width: 225, margin: '5px 0px 10px 9px', items: [{ xtype : 'textfield', fieldLabel : 'Telephone', inputType :'password', id : 'telephone', inputId: 'item_telepon', width: 225, readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Office no', inputType :'password', width: 225, id :'office_no', inputId: 'item_office_no', readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Mobile no', inputType :'password', width: 225, id:'mobile_no', inputId: 'item_mobile_no', readOnly : true, fieldStyle :'back...
Komentar
Posting Komentar