ExtJs 3.4-为什么选择后我的组合框项目会被删除
我有一个ExtJS组合框,其中包含一组选项,但是当选择一个选项时,所有其他选项都消失了 下面是一个简单的例子:-从下拉列表中选择某个内容,然后尝试选择其他内容ExtJs 3.4-为什么选择后我的组合框项目会被删除,extjs,extjs3,Extjs,Extjs3,我有一个ExtJS组合框,其中包含一组选项,但是当选择一个选项时,所有其他选项都消失了 下面是一个简单的例子:-从下拉列表中选择某个内容,然后尝试选择其他内容 有人能告诉我这有什么问题吗 您应该在combo中使用触发动作:'all'。在你的代码中,你在商店里使用它 var combo = new Ext.form.ComboBox({ store: new Ext.data.JsonStore({ storeId: 'racksStore', fields: ['RackI
有人能告诉我这有什么问题吗 您应该在combo中使用触发动作:'all'。在你的代码中,你在商店里使用它
var combo = new Ext.form.ComboBox({
store: new Ext.data.JsonStore({
storeId: 'racksStore',
fields: ['RackId', 'Fullname'],
autoLoad: false,
root: 'Racks',
//<-- remove from store
data: rackJson
}),
displayField: 'Fullname',
valueField: 'RackId',
triggerAction: 'all', //<--- Use here
emptyText: 'Select a name...',
width: 135,
editable: false,
mode: 'local'
});
var combo=new Ext.form.ComboBox({
存储:新Ext.data.JsonStore({
storeId:“racksStore”,
字段:['RackId','Fullname'],
自动加载:false,
根:'机架',
// 您应该在combo中使用triggerAction:'all'。在代码中,您可以在store中使用它
var combo = new Ext.form.ComboBox({
store: new Ext.data.JsonStore({
storeId: 'racksStore',
fields: ['RackId', 'Fullname'],
autoLoad: false,
root: 'Racks',
//<-- remove from store
data: rackJson
}),
displayField: 'Fullname',
valueField: 'RackId',
triggerAction: 'all', //<--- Use here
emptyText: 'Select a name...',
width: 135,
editable: false,
mode: 'local'
});
var combo=new Ext.form.ComboBox({
存储:新Ext.data.JsonStore({
storeId:“racksStore”,
字段:['RackId','Fullname'],
自动加载:false,
根:'机架',
//可能重复的Oops-发现重复,并确认触发“全部”修复问题-这需要关闭可能重复的Oops-发现重复,并确认触发“全部”修复问题-这需要关闭