PDA

View Full Version : node.cascade and multi levels tree



silve69
20 Mar 2011, 1:26 PM
Hello folks,
I have a treepanel for showing a tree with the follows 4 levels:



root
|__ group
|__ category
|__ subcategory
|__ subsubcategory


How I can show all the items name???
I tried with "cascade" without success (only works for the first level)



...
listeners: {
load: function(treenode,node) {
node.cascade(function (n) {
if (!n.isRoot) {
console.log(n.text);
}
});
}


Some suggestion?
Best regards,

Silver

silve69
21 Mar 2011, 5:41 PM
Some suggestion, please!!!!!
Bests!!!!