I want to filter result from store like below.
I have textbox
and if I write anything in it then It should filter store accordingly.
e.g. Store result is
Monday
Tuesday
Wednesday
Thursday
Filter should work like if I type Mon
then result should be Monday
only.
I tried below code but no luck.
items: {
xtype: 'textfield',
name: 'value',
width : '100%',
align: 'center',
margin: '0 2 2 2',
listeners : {
change: function(field, newValue, oldValue, eOpts) {
var gridRecords = Ext.getCmp('Grid').getStore();
gridRecords.filter({
property: 'value',
value: newValue,
anyMatch: true,
caseSensitive: false
});
}
}
}
Thanks.