EXTjs grid双层表头的实现 (源代码和示例).docxVIP

  • 10
  • 0
  • 约 4页
  • 2016-08-21 发布于河南
  • 举报

EXTjs grid双层表头的实现 (源代码和示例).docx

EXTjs grid双层表头的实现 (源代码和示例)

源代码:加载到页面中的js文件GridDoubleHeader.js?/******************************************************************************** @author * @since * @description 双层表头* @param{}* mtext 表头名 * @param{}* mcol 向后跨越子表头个数* @param{}* mwidth 上至下第一层表头的宽度,即父表头的宽度 * @class MyGridView* @extends Ext.grid.GridView*/MyGridView = Ext.extend(Ext.grid.GridView, { renderHeaders : function() { var cm = this.cm, ts = this.templates; var ct = ts.hcell, ct2 = ts.mhcell; var cb = [], sb = [], p = {}, mcb = []; for (var i = 0, len = cm.getColumnCount(); i len; i++) { p.id = cm.getColumnId(i); p.value = cm.getColumnHeader(i) || ; p

文档评论(0)

1亿VIP精品文档

相关文档