示例
items: [{
xtype: "form",
id: "xxxForm",
url: "/xxx/xxx/xxx.do",
//layout: "absolute",
bodyStyle: 'overflow-x:hidden; overflow-y:hidden',
//border: false,
buttons: [
{
text: "保存",
formBind: true,
handler: function() {
var userIdChecked=$('input:checkbox[name="xxx"]:checked');
var myMask = new Ext.LoadMask(Ext.getCmp('xxxForm').body, {msg:"请稍等。。。"});
myMask.show();
var form = Ext.getCmp('xxxForm').getForm();
form.submit({
clientValidation: true,
params: {
userParam: userIdChecked
},
success: function(form, action) {
myMask.hide();
if(action.response.status == "200"){
Ext.Msg.alert("提示","保存成功");
}else{
Ext.Msg.alert("提示","保存失败");
}
Ext.getCmp('xxx').close();
},
failure: function(form, action) {}
});
}
}
],
items: [treeGrid]
}],