论坛首页 Web前端技术论坛

打造Ext2.0模块化单页系统(二)

浏览 12919 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-10-24  
var grid = new Ext.grid.GridPanel({  
             store: store,  
             columns: [  
                 {id:'company',header: "Company", width: 160, sortable: true, dataIndex: 'company'},  
                 {header: "Price", width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price'},  
                 {header: "Change", width: 75, sortable: true, renderer: this.change, dataIndex: 'change'},  
                 {header: "% Change", width: 75, sortable: true, renderer: this.pctChange, dataIndex: 'pctChange'},  
                 {header: "Last Updated", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}  
             ],  
             stripeRows: true,  
             autoExpandColumn: 'company',  
             height:350,  
             width:600,  
             title:'Array Grid'  
         });  
           
         this.main.add(grid); 


请教一下,这里this.main.add(grid); 添加了个grid,如果我想除了添加grid外,再想添加个FormPanel,应该如何操作呢?
0 请登录后投票
   发表时间:2008-10-24  
博主:你好,我按照你写的程序修改了一下,怎么一直报
demo.module = function(main){  
    this.main = main;  
    this.init();  
}  
这个里面的this.init()错,具体错误是“对象不支持此属性或方法”
0 请登录后投票
   发表时间:2008-10-28  
dm841128 写道
博主:你好,我按照你写的程序修改了一下,怎么一直报
demo.module = function(main){  
    this.main = main;  
    this.init();  
}  
这个里面的this.init()错,具体错误是“对象不支持此属性或方法”


仔细看下你有没有init()方法。
0 请登录后投票
   发表时间:2008-12-09  
左侧菜单能不能改进一下,现在的不好看,如能改成伸缩面板性质的好一点阿
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics