开发者

ExtJS TreePanel doesn't work in IE 8

开发者 https://www.devze.com 2023-02-16 13:51 出处:网络
I have defined a class which represents a tree structure GeographicalUnits = Ext.extend(Ext.tree.TreePanel, {

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:

开发者_C百科[{"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?


It was some bug in IE. Strange, but installation of HttpWatch fixed the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号