以前在ext 3.0中,我們使用XML響應構建了Tree Panel。 對於我們有自定義類擴展'Ext.tree.TreeLoader' 這個TreeLoader是建立樹結構(父/子節點)有用。從ExtJS 3.0遷移到4.0
遷移到4.0時發現TreeLoader類缺失。 有沒有替代這個類或任何其他方式來構建樹結構?
我想生成以下XML樹結構: 其實,我想從這個XML構建樹結構:
<?xml version='1.0' ?>
<Root>
<Folder>
<CreateDate>Apr 29, 2011</CreateDate>
<CreatedBy>1000</CreatedBy>
<Files/>
<FolderName>Testing</FolderName>
<FolderNamePath/>
<FolderPath/>
<Folders>
<Folder>
<CreateDate>Apr 6, 2011</CreateDate>
<CreatedBy>1000</CreatedBy>
<Files/>
<FolderName>JayM</FolderName>
<Folders>
<Folder>
<CreateDate>Apr 6, 2011</CreateDate>
<CreatedBy>1000</CreatedBy>
<Files/>
<FolderName>JaM</FolderName>
<Id>2000</Id>
<ModDate>Dec 30, 2011</ModDate>
<ParentFolderId>1948</ParentFolderId>
</Folder>
</Folders>
<Id>1948</Id>
<ModBy>1000</ModBy>
<ModDate>Dec 30, 2011</ModDate>
<ParentFolderId>1</ParentFolderId>
</Folder>
<Folder>
<CreateDate>Dec 2, 2011</CreateDate>
<CreatedBy>1000</CreatedBy>
<Files/>
<FolderName>demo folder</FolderName>
<Folders/>
<Id>2427</Id>
<ModBy/>
<ModDate/>
<ParentFolderId>1</ParentFolderId>
</Folder>
</Folders>
<Id>1</Id>
<ModBy/>
<ModDate/>
<ParentFolderId/>
</Folder>
</Root>
任何幫助表示讚賞。
謝謝bmoeskau!你能給出除Sencha Docs以外的任何TreeStore示例嗎? – 2012-01-02 10:44:19
請參閱上面的示例鏈接 – 2012-01-02 15:19:23