-
Using filters with stores
Using filters with stores
Hi guys,
here i need some help for setting filters
I am using kiva demo as my starting point made necessary changes in proxy,
changed listings,
List.js
initComponent: function() {
Ext.applyIf(this, {
store: new Ext.data.Store({
model: "Loan",
autoLoad: true,
remoteFilter: false,
filterOnLoad: true,
/* filters: [
{
property:'property',
value:3
}
] */
})
});
kiva.views.List.superclass.initComponent.apply(this, arguments);
this.enableBubble('selectionchange');
filters.js
{
xtype: 'selectfield',
name: 'property',
prependText: 'property:',
options: [
{text: 'All', value: ''},
{text: '2', value: 2},
{text: '3', value: 3},
{text: '4', value: 4},
{text: '5', value: 5},
{text: '6', value: 6},
]
}
now when i change the selection it says "no results found"
do i need to update anything in proxy, or any other changes...
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us