I haven't tried to reload a tree node, but just had a look through the JavaScripts. In \umbraco_client\Tree\UmbracoTree.js there is a function called "refreshTree", (there is also one called "rebuildTree"). So you could try something like...
UmbClientMgr.mainTree().refreshTree('content');
By the way, I haven't tested this in any way, shape or form... mostly guess-work here! ;-)
Shannon Deminick is probably the best person to ask about this. He does come on the forum, so hopefully I might be able to help out?
Other than that... play around with the JS libraries - and let us know if you figure it out!
And this worked greate! I alos changed the refreshTree function to reloadActionNode() and that reloaded the correct level in the tree.
This is greateeeee!
My next step is to figure out how to get a modal to get my "custom section" tree so that i can create a move/copy funtionality like the one in the content section.
Where is UmbClientMgr ?
Hi,
Im new to v.4.5 and in trying to use modals and stuff and it seem everything is done from the UmbClientMgr.
If I have my own .aspx file what do i need to include to acces this?
Where do I find a API for UmbClientMgr so I can see all neet functions?
Best Regards
Marthin
Hi Marthin,
UmbClientMgr can be found here: \umbraco_client\Application\UmbracoClientManager.js
Cheers, Lee.
Thank you Lee!
Greate!
Do you perhaps also know how to reload a treeNode with this new lib?
Hi Marthin,
I haven't tried to reload a tree node, but just had a look through the JavaScripts. In \umbraco_client\Tree\UmbracoTree.js there is a function called "refreshTree", (there is also one called "rebuildTree"). So you could try something like...
By the way, I haven't tested this in any way, shape or form... mostly guess-work here! ;-)
Shannon Deminick is probably the best person to ask about this. He does come on the forum, so hopefully I might be able to help out?
Other than that... play around with the JS libraries - and let us know if you figure it out!
Cheers, Lee.
Hi again!
So i tried your code with a small change. since im working from a modal in a I frame i called
And this worked greate! I alos changed the refreshTree function to reloadActionNode() and that reloaded the correct level in the tree.
This is greateeeee!
My next step is to figure out how to get a modal to get my "custom section" tree so that i can create a move/copy funtionality like the one in the content section.
Thx for all help!!
is working on a reply...