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?
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?
is working on a reply...