Home / Community & Support / Knowledge Base / RadControls for ASP.NET AJAX / Menu / Mega Drop-Down Menu Bind to Xml DataSource

Mega Drop-Down Menu Bind to Xml DataSource

Article Info

Rating: Not rated

Article information

Article relates to

  RadMenu for ASP.NET AJAX Q1 2011 or later

Created by

 Katerina, Telerik

Last modified

 November 7th, 2011

Last modified by

 Katerina, Telerik


HOW-TO:
Implement Mega Drop-Down Menu like the on-line demo and bind it to an xml file using RadSiteMap control. 

SOLUTION:
Binding an already existing xml file to a Mega Drop-Down menu is much easier than creating the DataSource in the markup. Therefore, we decided to provide an example how this could be implemented using an xml file and the RadSitemap control. This example also demonstrates how a custom attribute (ImagePosition) can be applied to the xml file and then used in the code behind. The current example provides the position of the image (the value 1 assigns the position at the last place while the value of 0 assigns the position of the image at the first place).    

Comments

There are no comments yet.
If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.