myExtJsUname
1 Aug 2012, 7:02 AM
I've tried the suggestions I've found in this forum but haven't had any success yet. I'm hoping someone can take a quick look and see if they can identify what I am missing or incorrectly defining. I started out with a web service JSON store that was exhibiting this behaviour and have been making the example simpler and simpler trying to find where I am going wrong. Now, it's as simple as I can make it and I still can't see the problem.
The scenario:
Based on previous selections, I am dynamically creating a ComboBox and adding it to an empty Ext.panel.Panel with the code below. After rendering, and when I click on the ComboBox's down arrow, the selection possibilities remain greyed out and there is a "Loading..." mask that never goes away. I'm assuming I've missed something along the way in defining these items but can't find what is missing.
Any help would be appreciated.
Cheers,
jtm
Ext.define(
"classificationMethod"
,{
extend: "Ext.data.Model"
,fields: ["key", "text"]
}
);
var store = Ext.create(
'Ext.data.Store'
,{
model: 'classificationMethod'
,data: [
{
key: "equal-interval"
,text: "Equal Interval"
}
,{
key: "natural-breaks"
,text: "Natural Breaks"
}
,{
key: "quantile"
,text: "Quantile"
}
]
}
);
this.cmbClassMethod = Ext.create(
'Ext.form.field.ComboBox'
,{
emptyText: "Select classification method to use..."
,anchor: "100%"
,store: store
,displayField: "text"
,valueField: "key"
,forceSelection: true
}
);
The scenario:
Based on previous selections, I am dynamically creating a ComboBox and adding it to an empty Ext.panel.Panel with the code below. After rendering, and when I click on the ComboBox's down arrow, the selection possibilities remain greyed out and there is a "Loading..." mask that never goes away. I'm assuming I've missed something along the way in defining these items but can't find what is missing.
Any help would be appreciated.
Cheers,
jtm
Ext.define(
"classificationMethod"
,{
extend: "Ext.data.Model"
,fields: ["key", "text"]
}
);
var store = Ext.create(
'Ext.data.Store'
,{
model: 'classificationMethod'
,data: [
{
key: "equal-interval"
,text: "Equal Interval"
}
,{
key: "natural-breaks"
,text: "Natural Breaks"
}
,{
key: "quantile"
,text: "Quantile"
}
]
}
);
this.cmbClassMethod = Ext.create(
'Ext.form.field.ComboBox'
,{
emptyText: "Select classification method to use..."
,anchor: "100%"
,store: store
,displayField: "text"
,valueField: "key"
,forceSelection: true
}
);