예제 #1
0
        protected override TreeNode <MenuItem> Build()
        {
            var xmlSiteMap = new Telerik.Web.Mvc.XmlSiteMap();

            xmlSiteMap.LoadFrom("~/Administration/sitemap.config");

            var rootNode = ConvertSitemapNodeToMenuItemNode(xmlSiteMap.RootNode);

            return(rootNode);
        }
예제 #2
0
        protected override TreeNode <MenuItem> Build()
        {
            var xmlSiteMap = new Telerik.Web.Mvc.XmlSiteMap();

            xmlSiteMap.LoadFrom("~/Administration/sitemap.config");

            var rootNode = ConvertSitemapNodeToMenuItemNode(xmlSiteMap.RootNode);

            Services.EventPublisher.Publish(new MenuBuiltEvent(Name, rootNode));

            return(rootNode);
        }