PDA

View Full Version : store combobox don't work in IE8 with asp.mvc



milosv
22 Sep 2009, 3:20 AM
Hi,
i use
extjs : 3.0
.net framework : 3.5
asp.mvc : 1.0

This's my store EXTJS:
var comboCollectionDivisions = new Ext.form.ComboBox({
id: 'comboCollection'
, width: 280
, fieldLabel: 'Collection divisions'
, hideOnSelect: false
, maxHeight: 200
, store: new Ext.data.Store({
sortInfo: { field: "descr", direction: "ASC" }
, proxy: new Ext.data.HttpProxy({
url: addressLookUp
}),
reader: new Ext.data.JsonReader({
root: 'result'
}, Ext.data.Record.create([{ name: 'descr', mapping: 'descr', type: 'string' },
{ name: 'id', mapping: 'id', type: 'int'}]))
})
, triggerAction: 'all'
, valueField: 'id'
, displayField: 'descr'
, mode: 'remote'
});

My backend .net code is:

public JsonResult LookUpAllDivisions()//divisione di vendita
{
using (var MAC_Dao = new MultiSiteModelDataContext())
{
var Divisions = (from c in MAC_Dao.Divisiones
where c.Attivo
select new { id = c.ID_Divisione , descr = c.Descrizione_TTT }).ToList();
return this.Json(new MvcResult { success = true, result = Divisions, numRecords = Divisions.Count()});
}
}

public class MvcResult : ActionResult
{
public bool success { get; set; }
public object result { get; set; }
public int numRecords { get; set; }
public string ext { get; set; }

public override void ExecuteResult(ControllerContext context)
{
throw new NotImplementedException();
}
}

all work in FF but don't work in IE8.
Http request return ERROR_INTERNET_CONNECTION_ABORTED in IE8.
Anyone know how to fix this, please?

Thanks.