It works fine !
Thanks for you reactivity ![]()
You are not logged in. Please login or register.
Mifjs forum — Mif.Tree, Mif.Menu » Help » How to expand ajax n-level tree ? » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
It works fine !
Thanks for you reactivity ![]()
try expand nodes loaded via ajax using loadNode event, something like:
tree.addEvent('loadNode', function(node){
node.getChildren().each(function(child){
child.toggle();
});
});Hello,
I have a (big) tree where each node is loaded with Ajax, and there is 3-4 levels of depth. The root is level 0, and when I use the following script (found in this forum), it only open all nodes from level 0 (the root), but never nodes from level >= 1.
this.root.recursive(function()
{
// forest is set to true
if (this.isRoot()) return;
this.toggle();
});I'm trying to find something to expand all nodes from all levels, i.e. to load each of them with Ajax at the loading of the tree.
An idea ?
Thanks.
Mifjs forum — Mif.Tree, Mif.Menu » Help » How to expand ajax n-level tree ? » Post new reply
Powered by PunBB