PDA

View Full Version : Need some help on tree creation for touch



sudhiris
21 Jun 2010, 1:10 AM
Can some one please......:-/ give me a sample tree creation code. this should run exactly as how the EXTJS control works with Drag and drop options plugged in. Please help me on this aspects... its has become very difficult for me to figure out how to me it work on iPhone and iPad... Please do send me some sample if any on has. :s

gowtham.s
22 Jul 2011, 2:51 AM
Hi i'm new to javascript and sencha touch , I'm also looking to implement tree structure navigation in sencha touch
here is my code ,if anybody known kindly reply to this.
it's not working
---------------------------------
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 won't display anything
thanks in advance..