Hi,
I want to use the same XML data source to load tabs in a RadTabStrip (used as the Menu on the page) and a RadTreeView (used as a SiteMap).
The XML file must have one (and only one) root element . Unfortunately the root element is displayed in the RadTabStrip and because of that I can only have one root tab…
The XML file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<Items Text="1" Url="">
<Item Text="European cities" Url="" >
<Item Text="Sofia" Url="http://en.wikipedia.org/wiki/Sofia" />
<Item Text="Berlin" Url="http://en.wikipedia.org/wiki/Berlin" />
<Item Text="Paris" Url="http://en.wikipedia.org/wiki/Paris" />
</Item>
</Items>
I load the file like this:
Dim x As New XmlDataSource
x.DataFile = strVirtualFolder & "/xml/SiteMap_TelerikMenuTest.xml"
m.DataTextField = "Text"
m.DataNavigateUrlField = "Url"
m.DataBind()
And my ASPX file:
<telerik:RadTabStrip ID="m" UnSelectChildren="true" Skin="Office2007" runat="server" dir="ltr" CausesValidation="false" SelectedIndex="-1" >
</telerik:RadTabStrip>
How can I have more than one ”root tab”?