fordprefect
4 Apr 2012, 2:41 PM
Hi,
I have a mvc application that has a combo box defined:
Ext.define('MyApp.view.canvas.Category', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.canvascategory',
emptyText: 'Select A Category',
fieldLabel: 'Category',
store: 'CategoryStore',
displayField: 'Name',
valueField: 'CategoryId'
});
with a store:
Ext.define('MyApp.store.CategoryStore', {
extend: 'Ext.data.Store',
model: 'MyApp.model.CategoryModel',
proxy: {
type: 'ajax',
url: '/MyApp/Canvas/GetCategories',
reader: {
type: 'json'
}
}
});
In IE8 the combo box does not contain any records, all the other browsers work fine in populating the store and combo box.
I tried to populate the store in the controller:
this.getStore("CategoryStore").load({
callback: function (records, operation, success) {
alert(records);
}
});
But the records reported a null value (again, in other browsers it was fine).
Is there a trick to creating stores so that they work in IE8 or have I missed something obvious?
Thanks for any ideas.
I have a mvc application that has a combo box defined:
Ext.define('MyApp.view.canvas.Category', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.canvascategory',
emptyText: 'Select A Category',
fieldLabel: 'Category',
store: 'CategoryStore',
displayField: 'Name',
valueField: 'CategoryId'
});
with a store:
Ext.define('MyApp.store.CategoryStore', {
extend: 'Ext.data.Store',
model: 'MyApp.model.CategoryModel',
proxy: {
type: 'ajax',
url: '/MyApp/Canvas/GetCategories',
reader: {
type: 'json'
}
}
});
In IE8 the combo box does not contain any records, all the other browsers work fine in populating the store and combo box.
I tried to populate the store in the controller:
this.getStore("CategoryStore").load({
callback: function (records, operation, success) {
alert(records);
}
});
But the records reported a null value (again, in other browsers it was fine).
Is there a trick to creating stores so that they work in IE8 or have I missed something obvious?
Thanks for any ideas.