This example illustrates how to share the same SiteMap between ASPxMenu and ASPxSiteMapControl placed to show information from different SiteMap node levels. Here are steps you need to execute:
- Place ASPxSiteMapControl within ASPxMenu.SubMenuTemplate;
- Specify the ASPxSiteMapControl.DataSource property. ASPxSiteMapControl and ASPxMenu should have different ASPxSiteMapDataSource;
- Handle the ASPxSiteMapControl.DataBinding event;
- Define the ASPxSiteMapDataSource.StartingNodeUrl property according to the parent menu node's NavigateUrl:
Question Comments
Added By: Anton Logvenchev at: 5/29/2014 3:44:13 AM
Goof example. But when I click at the any mainmenu ("SubCategoryA" for example) I got the error - 404 - File or directory not found.
Added By: Helen (DevExpress Support) at: 5/29/2014 5:24:16 AMHello Anton,
Thank you for the feedback. The cause of the problem is that the urls defined in the xml file do not refer to real pages. I've replaced them with dummy code that does not raise 404 error.