Ext gridPanel数据无法显示问题,急~~~
时间:2011-07-15
来源:互联网
JScript code
jason后来获取到的数据为:
{'success':true,'data':[{"AssessNo":3.0,"OrgId":0.0,"TargetCode":"313","TargetName":"海沧区东孚卫生院","SolutionNo":122.0,"SolutionName":"福建省基本公共卫生服务项目考核标准","ItemPrice":56.0,"ItemScore":56.0},{"AssessNo":3.0,"OrgId":0.0,"TargetCode":"305","TargetName":"同安区西柯卫生院","SolutionNo":122.0,"SolutionName":"福建省基本公共卫生服务项目考核标准","ItemPrice":112.0,"ItemScore":83.0}],'totalcount':2 }
但是前台的gridPanel无法显示,storeAssessScore的load事件中的callback方法的success参数值返回了false
请问哪里出了问题???
请大家帮帮忙看一下,谢谢了!!!
//数据绑定加载 GridBind: function (assessNo, solutionNo) { Ext.AssessSolutionGradeStistics.app.storeAssessScore.baseParams = { assessNo: assessNo, solutionNo: solutionNo }; Ext.AssessSolutionGradeStistics.app.storeAssessScore.load({ params: { start: 0, limit: 20 }, callback: function (r, options, success) { if (success == false) { Ext.MessageBox.alert('提示',"加载数据失败,无对应数据或者系统出现异常!"); } else { } } }); } //grid控件显示 this.storeAssessScore = Ext.AssessComm.AssessStore("/AssessStatistics/GetAssessSolutionGrade"); this.gridCmAssessScore = new Ext.grid.ColumnModel([ { header: '机构名称', width: 60, sortable: true, dataIndex: 'TargetName' }, { header: '方案名称', width: 60, sortable: true, dataIndex: 'SolutionName' }, { header: '考核结果得分', width: 60, sortable: true, dataIndex: 'ItemScore' } ]); this.gridAssessScore = new Ext.grid.GridPanel({ id: 'AssessSolutionScoreList', name: 'AssessSolutionScoreList', region: "center", colModel: Ext.AssessSolutionGradeStistics.app.gridCmAssessScore, store: Ext.AssessSolutionGradeStistics.app.storeAssessScore, frame: true, border: true, enableHdMenu: false, sm: new Ext.grid.CheckboxSelectionModel({ singleSelect: true }), bbar: new Ext.PagingToolbar({ store: Ext.AssessSolutionGradeStistics.app.storeAssessScore, pageSize: 20, displayInfo: true }) });
jason后来获取到的数据为:
{'success':true,'data':[{"AssessNo":3.0,"OrgId":0.0,"TargetCode":"313","TargetName":"海沧区东孚卫生院","SolutionNo":122.0,"SolutionName":"福建省基本公共卫生服务项目考核标准","ItemPrice":56.0,"ItemScore":56.0},{"AssessNo":3.0,"OrgId":0.0,"TargetCode":"305","TargetName":"同安区西柯卫生院","SolutionNo":122.0,"SolutionName":"福建省基本公共卫生服务项目考核标准","ItemPrice":112.0,"ItemScore":83.0}],'totalcount':2 }
但是前台的gridPanel无法显示,storeAssessScore的load事件中的callback方法的success参数值返回了false
请问哪里出了问题???
请大家帮帮忙看一下,谢谢了!!!
作者: yayusuhua 发布时间: 2011-07-15
按钮事件响应代码:
JScript code
JScript code
//获取选中的数据 var assessNo = Ext.AssessSolutionGradeStistics.app.cmbAssessNo.getValue(); var solutionNo = Ext.AssessSolutionGradeStistics.app.cmbAssessSolution.getValue(); //调用方法绑定数据 Ext.AssessSolutionGradeStistics.app.GridBind(assessNo, solutionNo);
作者: yayusuhua 发布时间: 2011-07-15
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28