首页 > 代码库 > Extjs4.2纯前台导出excel中不支持treepanel
Extjs4.2纯前台导出excel中不支持treepanel
Extjs4.2纯前台导出excel代码中,Button.js的构造函数中
this.on("afterrender", function () { // We wait for the combo to be rendered, so we can look up to grab the component containing it
self.setComponent(self.store || self.component || self.up("gridpanel") || self.up("treepanel"), config);
});
目测应该是支持treepanel的,结果测试结果为不支持treepanel,经查原来是在Worksheet.js中,关于buildRows方法中有这么一段代码
buildRows: function () {
var rows = [];
this.store.each(function (record, index) {
rows.push(this.buildRow(record, index));
}, this);
return rows;
}
如果是treepanel,那个这里的store为TreeStore,但是TreeStore并没有each方法,所以导致这段代码无法继续执行。
Extjs4.2纯前台导出excel中不支持treepanel
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。