摘要: 在gridpanel中加入以下代码: viewConfig : { layout : function() { if (!this.mainBody) { return; // not rendered } var g = this.grid; var c = g.getGridEl(); var csize = c.getSize(true); var vw = csize.width; if... 阅读全文
posted @ 2011-07-02 14:39 jadebug 阅读(1981) 评论(1) 推荐(0) 编辑
摘要: EditorGridPanel中嵌入ComboBox通常不会正常显示ComboBox的store中本想显示字段,而是显示的EditorGridPanel中 store的dataindex指定的字段内容。 为了解决这个问题需要在EditorGridPanel的ColumnModel中显示ComboBox的地方使用renderer属性,重新渲染,方法如下: //部门列表 var comboxDep... 阅读全文
posted @ 2011-07-02 11:13 jadebug 阅读(2091) 评论(1) 推荐(0) 编辑