кто работал поделитесь работоспособным примером.
Ext.onReady(function(){
// shorthand
var treeLoader = new Ext.tree.TreeLoader({
dataUrl:'test.html'
});
var rootNode = new Ext.tree.AsyncTreeNode({
text: 'Root'
});
var tree = new Ext.tree.TreePanel({
renderTo:'treecontainer',
loader: treeLoader,
root: rootNode
});
tree.render();
});
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head" runat="server">
<script type="text/javascript" src="/extjs/ext-3.3.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/extjs/ext-3.3.1/ext-all.js"></script>
<script type="text/javascript" src="ext.js"></script>
<LINK href="/extjs/ext-3.3.1/resources/css/ext-all.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h1>Drag and Drop ordering in a TreePanel</h1>
<div id="treecontainer" style="height:300px; width:200px;"></div>
</body>
</html>
сам test.html - то есть дерево.
[{"text":"license.txt","id":"\/license.txt","leaf":true,"cls":"file"},{"text":"INCLUDE_ORDER.txt","id":"\/INCLUDE_ORDER.txt","leaf":true,"cls":"file"},{"text":"ext-all-debug-w-comments.js","id":"\/ext-all-debug-w-comments.js","leaf":true,"cls":"file"},{"text":"examples","id":"\/examples","cls":"folder"},{"text":"src","id":"\/src","cls":"folder"},{"text":"docs","id":"\/docs","cls":"folder"},{"text":"release-notes.html","id":"\/release-notes.html","leaf":true,"cls":"file"},{"text":"ext-3.3.1","id":"\/ext-3.3.1","leaf":true,"cls":"file"},{"text":"ext-all-debug.js","id":"\/ext-all-debug.js","leaf":true,"cls":"file"},{"text":"pkgs","id":"\/pkgs","cls":"folder"},{"text":"resources","id":"\/resources","cls":"folder"},{"text":"test","id":"\/test","cls":"folder"},{"text":"index.html","id":"\/index.html","leaf":true,"cls":"file"},{"text":"ext.jsb2","id":"\/ext.jsb2","leaf":true,"cls":"file"},{"text":"ext-all.js","id":"\/ext-all.js","leaf":true,"cls":"file"},{"text":"adapter","id":"\/adapter","cls":"folder"},{"text":"welcome","id":"\/welcome","cls":"folder"},{"text":"gpl-3.0.txt","id":"\/gpl-3.0.txt","leaf":true,"cls":"file"},{"text":"ext-3.3+","id":"\/ext-3.3+","leaf":true,"cls":"file"}]