PDA

View Full Version : TreePanel doesn't work in IE 8



kalan
14 Mar 2011, 6:14 AM
I have defined a class which represents a tree structure


GeographicalUnits = Ext.extend(Ext.tree.TreePanel, {
title: '?????? / ?????',
//rootVisible: false,
initComponent: function () {
this.root = {
text: 'Tree Node',
expanded: true
};
this.loader = {
url: 'API/GeographicalUnits/GetNodes'
};
GeographicalUnits.superclass.initComponent.call(this);
}
});

I create an instance this way:


Ext.getCmp('MainTabs').openTab(new GeographicalUnits({
id: 'GeographicalUnitsCatalog'
}));

server response is:
[{"text":"geo1","children":[{"text":"sub1","leaf":true},{"text":"sub2","leaf":true}]}]

it works in Chrome, firefox and Opera, but doesn't work in IE 8. why?

kalan
15 Mar 2011, 5:38 AM
I tried to switch ext adapter to jquery, but the problem remains.

I've created a handler for loadexception event of TreeLoader, and the response object has:
statusText: "communication failure"
status: 0

Hey guys. I really need help. Someone, please help.

kalan
15 Mar 2011, 6:24 AM
It was some bug in IE. Strange, but installation of HttpWatch fixed the problem.