I have a site with a custom section that hooks in to some custom tables. I have the tree working properly (or at least appearing to...) and I have the "create new" methods working but, when I create or edit an item, the tree collapses. Is there any way to prevent this?
I've seen someone mention ClientTools.SyncTree but I have no idea how to generate a path for my custom nodes. Any tips?
Custom section - tree collapsing on new node
Hi all,
I have a site with a custom section that hooks in to some custom tables. I have the tree working properly (or at least appearing to...) and I have the "create new" methods working but, when I create or edit an item, the tree collapses. Is there any way to prevent this?
I've seen someone mention ClientTools.SyncTree but I have no idea how to generate a path for my custom nodes. Any tips?
Many thanks
Alex
Hello Alex
Try this in the create method:
BasePage.Current.ClientTools.ReloadActionNode(true, true);
BasePage.Current.ClientTools.ChangeContentFrameUrl(returnUrl).ChildNodeCreated().CloseModalWindow();
And add this to the save method:
this.ClientTools.RefreshTree();
Regards
is working on a reply...