Results 1 to 4 of 4

Thread: TypeError: FilterClass is not a constructor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default 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: ????

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
      0  

    Default

    It is hard to read. Could you place with the code tags.

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,389
    Vote Rating
    498
      0  

    Default

    try placing your columns in your initComponent:

    this.columns = [ .. ]

    Scott.

  4. #4
    Sencha Premium User
    Join Date
    Mar 2011
    Location
    Farmers Branch, TX
    Posts
    49
    Vote Rating
    1
      0  

    Default Tab Panel??

    I see the same problem using Architect 2.2.2. If I remove the tab panel and display the grid on the top level component, it works fine. The Tab panel seems to trigger the error. (At least in my app)

    John

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •