1 Attachment(s)
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]
Attachment 39252