ツリー構造を表すクラスを定義しました
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);
}
});
この方法でインスタンスを作成します。
Ext.getCmp('MainTabs').openTab(new GeographicalUnits({
id: 'GeographicalUnitsCatalog'
}));
サーバーの応答は次のとおりです。
[{"text":"geo1","children":[{"text":"sub1","leaf":true},{"text":"sub2","leaf":true}]}]
Chrome、firefox、Opera では動作しますが、IE 8 では動作しません。なぜですか?