Filtering a Ext.data.Store by a particular id returns multiple results

前端 未结 2 1011
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-16 06:33

I\'m trying to filter my list of auditions by show ID but when the show ID is \'1\' all auditions that have a show Id of \'1x\' are being returned. Below is my code.

2条回答
  •  执笔经年
    2021-01-16 07:25

    I have found that to pass an object to filter it must instantiate a new filter, as per the below:

    store.filter(new Ext.util.Filter({property:"foo", value:"bar", exactMatch:true});
    

提交回复
热议问题