Copied to clipboard

Flag this post as spam?

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

  • Paul Sørensen 302 posts 648 karma points
    May 16, 2016 @ 20:23
    Paul Sørensen

    Custom section - parameters in menu items ?


    I'm wondering if it's possible to have parameters with MenuItems in a Custom Section

    I have this where I would like to make the id available in my Angular's RouteParam

        protected override MenuItemCollection GetMenuForNode(string id, System.Net.Http.Formatting.FormDataCollection queryStrings)
            var menu = new MenuItemCollection();
            var nodes = GetTreeNodes(id, queryStrings);
            int i = 0;
            if (Int32.TryParse(id, out i))
                if (i > 9)
                    var m = new MenuItem("createMatch", "Create match");
                    m.Icon = "enter";

    Is it possible in any way ?

    /Paul s

Please Sign in or register to post replies

Write your reply to: