Threaded View

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    hz_qiuyuanxin is on a distinguished road

      0  

    Default TypeError: FilterClass is not a constructor

    TypeError: FilterClass is not a constructor


    My code

    [CODE]
    /*项目类型*/
    Ext.define('Wando.Base.ProjectType', {
    extend: 'Ext.grid.GridPanel',
    uses: [
    'Ext.grid.GridPanel',
    'Ext.ux.grid.FiltersFeature'
    ],
    config: {
    columns: [
    { xtype: 'rownumberer' },
    { text: '名称', dataIndex: 'name' }
    ],
    store: ProjectTypeStore,
    selModel: Ext.create('Ext.selection.CheckboxModel', {}),
    loadMask: true
    },
    initComponent: function () {
    this.tbar = [
    { id: 'add', xtype: 'button', text: '添加', handler: this.onAddHandler },
    { id: 'modify', xtype: 'button', text: '修改', handler: this.onModifyHandler },
    { id: 'del', xtype: 'button', text: '删除', handler: this.onDelHandler },
    { id: 'upload', xtype: 'button', text: '上传', handler: this.onUploadHandler }
    ];
    this.bbar = Ext.create('Wando.PagerBar', { store: this.store });

    var filters = {
    ftype: 'filters',
    local: true,
    filters: [{
    dataIndex: 'name',
    type: 'string'
    }]
    }

    this.features = [filters];


    this.callParent(arguments);
    },
    onAddHandler: function () {
    Ext.MessageBox.alert("标题", "内容");
    },
    onModifyHandler: function () {
    Ext.MessageBox.alert("标题", "内容");
    },
    onDelHandler: function () {
    Ext.MessageBox.alert("标题", "内容");
    },
    onUploadHandler: function () {
    Ext.MessageBox.alert("标题", "内容");
    }
    });
    [CODE]




    QQ截图20121009233339.jpg
    Last edited by hz_qiuyuanxin; 9 Oct 2012 at 6:21 PM. Reason: 文字排版

Thread Participants: 3

Tags for this Thread