Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Wilks 27 posts 56 karma points
    Feb 13, 2013 @ 14:08
    Alex Wilks
    0

    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

  • Andreas Iseli 150 posts 427 karma points
    Feb 18, 2013 @ 15:59
    Andreas Iseli
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft