mardi 13 mai 2014

combobox drop down list filter issue

Ext.define('LIB.UX.DinerwareComboBox', {

extend: 'Ext.panel.Panel',

alias: 'widget.dinerwareComboBox',

border: false,

width: 400,

height:'auto',

initComponent: function () {

var me = this;

me.mnuItem = Ext.create('HO.store.MenuItemData', {

//pageSize: 5,

filters: [

{ id: 'MenuActive', property: 'Active', operator: 'eq', value: 1, disabled: false },

{ id: 'ParentCnt2', property: '(ParentCount eq null)', operator: 'function', value: '', disabled: false },

]

}).load();

{

xtype: 'combobox',

store: me.mnuItem,

// valueField: 'LongName',

displayField: 'LongName',

width: '100%',

hideTrigger: true,

cls: 'fresh-sheet-cmb-body',

fieldCls: 'fresh-sheet-cmb-style',

emptyText: 'add to fresh sheet',

queryMode: 'remote',

queryParam:'LongName',

typeAhead: true,

forceSelection: true,

minChars:1,

enableKeyEvents: true,

}

]

me.callParent(arguments);

});


Aucun commentaire:

Enregistrer un commentaire