The store is bonded to the combobox with bindStore in a separate function.
This specific example has two diff ways iv tried it - before binding and after. Console.log at the end shows filtered store for both 'store' and even the combobox. But the combobox itself still shows everything.
And it had no effect.
Store filtering for combobox and bindStore.
It all works fine - except that i need to filter the data in that function based of the given parameters.
Code:
loadMarkers: function(store, value){
store.filter('resellerid',17);
this.fields.marker.bindStore(store);
this.fields.marker.getStore().filter('id',17);
this.fields.marker.setValue(value);
}
This specific example has two diff ways iv tried it - before binding and after. Console.log at the end shows filtered store for both 'store' and even the combobox. But the combobox itself still shows everything.
I even set the (on combobox config)
And it had no effect.
Store filtering for combobox and bindStore.
Aucun commentaire:
Enregistrer un commentaire