PDA

View Full Version : Need Help with Tree



gowtham.s
21 Jul 2011, 10:52 PM
Hi i'm new to javascript and sencha touch , i need to implement tree structure can any one guide me ...
here is my code

---------------------------------
Ext.setup({
onReady: function(){
new Ext.data.Tree({
root:new Ext.data.Node({
text: 'root node',
childNodes: [
{
text: 'First Child',
childNodes: [
{
text: 'Screen',
leaf: true
},
{
text: 'Screen',
leaf: true
}
]
},
{
text: 'last Child',
leaf: true
}
]

})

});

}
});
---------------------------------
it is won't display anything
thanks in advance..