i did look in those files but failed to find what i was looking for.
in the backoffice, if you double click a node, it will expand to show its childnodes.
i merely want to replicate this behaviour in code using javascript.
the problem is that i don't know much about the UmbracoTreeAPI/UmbracoTree object (umbraco.controls.umbracotree is where you can find the object when debugging in firebug) which is where these behaviours are defined.
how do you expand(and load) / close content tree nodes using javascript in backoffice
what are the javascript calls i need to make to manually open/close a particular node?
if there is relevant documentation please point me to it!
thanks,
Simon
Do you have a custom section? Could you explain more exactly what you are trying to do?
I think you could use something like
To select it, not sure if this will open though. There are alot of other options you could try.
Check in UmbracoClientManager.js located in umbraco_client/application folder.
Best Regards
Marthin
thanks Marthin.
i did look in those files but failed to find what i was looking for.
in the backoffice, if you double click a node, it will expand to show its childnodes.
i merely want to replicate this behaviour in code using javascript.
the problem is that i don't know much about the UmbracoTreeAPI/UmbracoTree object (umbraco.controls.umbracotree is where you can find the object when debugging in firebug) which is where these behaviours are defined.
thanks again Marthin, the following code expands a node:
//obviously the number in the jquery selector needs to be changed to the ID of the node you want to expand.
UmbClientMgr.mainTree()._loadChildNodes($("#1234"));
is working on a reply...