Extjs4 如何在2个组合框中显示单个存储的不同值?
我对ExtJS4中的存储有问题。在我的应用程序中,我想使用两个combo。存储值显示在两个组合框中。但问题是,在第一个组合中选择的值不应该显示在下一个组合中。由于只有一家商店,我无法实现……该怎么办?您可以使用Extjs4 如何在2个组合框中显示单个存储的不同值?,extjs4,store,Extjs4,Store,我对ExtJS4中的存储有问题。在我的应用程序中,我想使用两个combo。存储值显示在两个组合框中。但问题是,在第一个组合中选择的值不应该显示在下一个组合中。由于只有一家商店,我无法实现……该怎么办?您可以使用选择第一个组合事件,如- listeners: { select: function(combo, records, eOpts){ Ext.getCmp('secondCombo').select(records[0]);
选择第一个组合事件,如-
listeners: {
select: function(combo, records, eOpts){
Ext.getCmp('secondCombo').select(records[0]);
}
}
您可以使用选择第一个组合的事件,如-
listeners: {
select: function(combo, records, eOpts){
Ext.getCmp('secondCombo').select(records[0]);
}
}
这对我有用
listeners : {
expand: function() {
boxerListStore.filter(function(r) {
var value = r.get('id');
var getValue = Ext.getCmp('boxer2').getValue();
return (value != getValue);
});
}
}
这对我有用
listeners : {
expand: function() {
boxerListStore.filter(function(r) {
var value = r.get('id');
var getValue = Ext.getCmp('boxer2').getValue();
return (value != getValue);
});
}
}