Refresh content-tree in backoffice using api V7.02
Xposting from /umbraco7/Using Umbraco7
Hi,
I have codeblock - hooked up on the event "ContentService.Saved". In this code I delete all childnodes of the saved node.
My problem is that this change to the content-tree is not reflected in the backoffice content-tree, forcing the user to do a manual 'Reload notes'.
I have tried several methods without any luck - see below for examples
Umbraco.Web.UI.Pages.BasePage bp = new BasePage();
bp.ClientTools.ChildNodeCreated();
bp.ClientTools.SyncTree(node.Path, true);
bp.ClientTools.ClearClientTreeCache();
Refresh content-tree in backoffice using api V7.02
Xposting from /umbraco7/Using Umbraco7
Hi,
I have codeblock - hooked up on the event "ContentService.Saved". In this code I delete all childnodes of the saved node.
My problem is that this change to the content-tree is not reflected in the backoffice content-tree, forcing the user to do a manual 'Reload notes'.
I have tried several methods without any luck - see below for examples
Anybody with help or suggestions ?
Kind regards Morten
is working on a reply...