PDA

View Full Version : Ext.Tree



KANekT
24 Jan 2011, 10:57 PM
<script type="text/javascript">

Ext.QuickTips.init();
Ext.onReady(function() {

var tree = new Ext.tree.TreePanel({
renderTo: Ext.getBody(),
title: 'Reporting Project',
width: 200,
height: 250,
userArrows: true,
animate: true,
autoScroll: true,
dataUrl: 'dd.json',
root: {
nodeType: 'async',
text: 'Root Node'
},
listeners: {
render: function() {
this.getRootNode().expand();
}
}
})
});
</script>
</head>
<body style="padding: 20px;">
</body>

it work in php, not work in asp.net. What could be the problem?

25 Jan 2011, 10:44 AM
could be your data. Try looking at how the data is being sent back to the client.