Copied to clipboard

Flag this post as spam?

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


  • Nathan Woulfe 447 posts 1664 karma points MVP 5x hq c-trib
    Jan 31, 2017 @ 06:39
    Nathan Woulfe
    0

    Add root node to custom tree section

    I've added a new tree to the User section (called User groups), which is then populated with a set of child nodes.

    That all works fine, but I want to also add a node at the root level of the tree - so that clicking on the User groups node displays a view.

    How can I make that work? I know I can capture the root node rendering event for the User groups tree with a handler extending TreeControllerBase.RootNodeRendering, but not sure how to set the view.

    Tried overriding the value in e.Node.RoutePath, which works as far as it sets the route, but returns a 404 on the view, I'm guessing because there isn't a route related to the value I've set.

    The view I want to render exists in a package, which is referenced on the tree controller and contains other views used for the child nodes (hope that makes sense). Is it as simple as just registering a route for the view? If so, where do I do that?

Please Sign in or register to post replies

Write your reply to:

Draft