Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > RadPanelBar
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered RadPanelBar

Feed from this thread
  • Roger avatar

    Posted on Jun 8, 2009 (permalink)

    How can I nest links in my xml file?

    Header Item
       Item 1
       Item 2
       Item 3
              Sub Item 1
              Sub Item 2
                 Sub Item 1_1
                 Sub Item_1_2

  • Posted on Jun 9, 2009 (permalink)

    Hello Roger,

    Check out the following code which I implemented to display a similar PanelBar structure as you require:
    .xml :
    <?xml version="1.0" encoding="utf-8" ?> 
    <Items Text=""
        <Item Text="HeaderItem" Url="" > 
            <Item Text="Item1 >>">           
                <Item Text="Sub Item 1" /> 
                <Item Text="Sub Item 2 >>" > 
                    <Item Text="Sub Item 1_1" /> 
                    <Item Text="Sub Item 1_2" /> 
                </Item> 
            </Item>      
            <Item Text="Item2"  /> 
            <Item Text="Item3" /> 
        </Item>  
    </Items> 

    .aspx:
      <telerik:RadPanelBar ID="RadPanelBar1" runat="server" DataSourceID="XmlDataSource1" 
                    DataTextField="Text"
      </telerik:RadPanelBar> 
                
       <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/XMLFile.xml" 
        XPath="/Items/Item"></asp:XmlDataSource> 

    Hope this helps...
    -Princy.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > General Discussions > RadPanelBar