[英]ETXJS 6.2.0 Combobox Filter Returns Mulitple Values
I have a combobox that's filtering a store based on an id from another drop down.我有一个 combobox,它根据另一个下拉列表中的 id 过滤商店。 However the filter seems to be returning all the values that START with the selected id.
但是,过滤器似乎正在返回所有以所选 ID开头的值。
xtype: 'combobox',
name: 'actor',
fieldLabel: 'Actor',
typeAhead: true,
forceSelection: true,
queryMode: 'local',
displayField: 'name',
valueField: 'id',
bind: {
store: 'actorStore',
value: 'actor.id',
filters: [{
property: 'customerId',
value: '{customer.value}',
disableOnEmpty: true
}
Try to set the filter's operator, see here :尝试设置过滤器的运算符,请参见此处:
filters: [{
property: 'customerId',
value: '{customer.value}',
operator: '=',
disableOnEmpty: true
}]
(I don't know your ExtJS version, but I am not sure the combobox has a filters
config, but the store surely has.) (我不知道你的 ExtJS 版本,但我不确定 combobox 有
filters
配置,但商店肯定有。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.