Unfortunately the refresh fires on completely random nodes and parents - if at all.
I discovered the javascript variable "nodeKey" returns "web-fx-element-NUM" where NUM is all kind of numbers, but when I use right-click->reload nodes, NUM is always the same when used on the same node.
My problem is now only that I dont know how to get the nodeKey value from C#. All I can find out is that umbraco.cms.presentation.Trees.BaseTree has a reference to nodeKey. But how do i get it from a nodeID?
parent.refreshNode() problems
Hi all
I have an aftersave eventhandler, wich is supposed to refresh the nodes under the current parent:
Unfortunately the refresh fires on completely random nodes and parents - if at all.
I discovered the javascript variable "nodeKey" returns "web-fx-element-NUM" where NUM is all kind of numbers, but when I use right-click->reload nodes, NUM is always the same when used on the same node.
Any clue what can be the issue here?
Thanks in advance!
Mathias
Ok - a little progress - I managed to get the refresh to behave by setting the nodeKey variable manually:
parent.refreshNode(nodeKey='webfx-tree-object-10');
My problem is now only that I dont know how to get the nodeKey value from C#. All I can find out is that umbraco.cms.presentation.Trees.BaseTree has a reference to nodeKey. But how do i get it from a nodeID?
Thanks,
Mathias
is working on a reply...