先贴代码:
onMailBoxTabCellClick: function(tableview, td, cellIndex, record, tr, rowIndex, e, eOpts) {
var store =Ext.getCmp('checkGrid').store;
Ext.Ajax.request({
url: "../../gettext",
method: "POST",
params: { messageid: record.raw.messageid}, //发送的参数
success: function (response, opts) {
var mailcontent=Ext.getCmp('mailcontent');
mailcontent.setValue(response.responseText);
},
failure: function () { Ext.Msg.alert("提示", "失败"); }
});
store.load({
params:{
messageid:record.raw.messageid
}
});
var mailcheck=Ext.getCmp('checkbox');
var mailsender=Ext.getCmp('sender');
mailsender.setText(record.raw.sender);
var maildate=Ext.getCmp('sendTime');
maildate.setText(record.raw.sendTime);
var mailTitle=Ext.getCmp('mailTitle');
mailTitle.setText(record.raw.subject);
var deleteId=Ext.getCmp('deleteId');
deleteId.setValue(record.raw.messageid);