Reputation: 4281
I am filtering my extJS store.
grid.store.filter(this.myFilterValue);
My store is filtering. Now the problem is if this.myFilterValue = "ATR"
then it suppose to filter value which having only "ATR" value. But in my case it is filtering all the value which have ATR character like ATRX,ATRY,ATRZ
. How to overcome from this.
Upvotes: 1
Views: 108
Reputation: 902
You can use store's filterBy method .Giving sample below wrt your code:
grid.store.filterBy(function(record){
//here i assumed record.filterValue as filterable property.You can take anything
if(myFilterValue==record.filterValue)
return true;
else
return false;
});
Check this and reply here.
Upvotes: 1