Using any data source, I can create the necessary hierarchy for a menu system using the RadNavigation. However, I have no examples or knowledge on how to activate associated URLs for each of the nodes.
If JavaScript is required, please show by example.
Required Info
- Visual Studio 2013
- Windows 10 Pro
- Google Chrome Version 45.0.2454.101 m
- Telerik Product: UI for ASP.NET AJAX, v.2015.3.930.45 (Dev)
- VB.NET
My HTML
<
telerik:RadNavigation
runat
=
"server"
ID
=
"RadMenu3"
Skin
=
"BlackMetroTouch"
DataSourceID
=
"XmlDataSource1"
DataTextField
=
"Text"
DataNavigateUrlField
=
"Url"
>
</
telerik:RadNavigation
>
<
asp:XmlDataSource
ID
=
"XmlDataSource1"
runat
=
"server"
DataFile
=
"~/App_Data/SiteNavigation.xml"
XPath
=
"/SiteNavigation/Item"
>
</
asp:XmlDataSource
>
XML SiteNavigation (abbreviated)
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
SiteNavigation
>
<
Item
Url
=
"#"
Text
=
"Surveying the Past"
>
<
Item
Url
=
"#"
Text
=
"Timeline"
/>
<
Item
Url
=
"#"
Text
=
"Blog"
/>
<
Item
Url
=
"#"
Text
=
"Discussion"
/>
</
Item
>
<
Item
Url
=
"#"
Text
=
"Experiencing the Present"
>
<
Item
Url
=
"#"
Text
=
"Timeline"
/>
<
Item
Url
=
"#"
Text
=
"Blog"
/>
<
Item
Url
=
"#"
Text
=
"Discussion"
/>
</
Item
>
</
SiteNavigation
>
ERROR: Page Won't Load
System.Web.UI.WebControls.XmlHierarchyData' does not contain a property with the name 'Url'