Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to share the same SiteMap between ASPxMenu and ASPxSiteMapControl placed within ASPxMenu.SubMenuTemplate

$
0
0

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 AM    

Hello 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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>