1
json 저장소가 채워진 일부 값이있는 간단한 콤보 상자가 있습니다. 문제는 내가 드롭 다운을 클릭하고 값을 선택하면 다른 값을 모두 선택할 수 없도록 다른 모든 값이 사라진다는 것입니다. Heres 내 코드 :선택시 ExtJS 콤보 요소가 사라짐
Ext.onReady(function(){
var dropDownStore = new Ext.data.JsonStore({
autoDestroy: false,
fields: ['graph', 'displayText'],
data: [
{graph: 'all', displayText: 'All Posts'},
{graph: 'other', displayText: 'Other Posts'}
],
autoLoad: false
});
var dropDown = new Ext.form.ComboBox({
disable: false,
mode: 'local',
store: dropDownStore,
valueField: 'graph',
displayField: 'displayText',
editable: false,
listeners: {
select: function(combo, record) {
//alert(combo.getValue());
}
}
});
});