-
12 Sep 2012 8:13 AM #1
filter
filter
How to filter a specific value of a combo on render of that combo.
i mean i have a , d ,c ,d in my store of combo.
on render of that i want only 3 i.e a,b,d
-
12 Sep 2012 10:26 AM #2
You can use beforequery:
Scott.Code:Ext.create('Ext.form.ComboBox', { fieldLabel: 'Filtered Cities', store: cities, queryMode: 'local', displayField: 'name', valueField: 'abbr', renderTo: Ext.getBody(), listeners: { beforequery: function(queryEvent){ cities.clearFilter(true); cities.filter({ property: 'state', value: 'AK' }); } } });


Reply With Quote