New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

XML Definition

  • Products
    • RadEditor
    • RadPanelBar
    • RadMenu
    • RadTabStrip
  • Support
    • Knowledge Base
    • Forums
    • Articles
    • FAQ

You can seamlessly populate RadPanelBar from XML.

  • Loading from XML file
    RadPanelBar1.LoadContentFile("panelbar.xml");
    
  • Loading from XML string
    RadPanelBar1.LoadXml("<Items><Item  Text="Item1" /><Item  Text="Item2" /></Items>");
    

You can also retrieve the current RadPanelBar structure in XML format:

  • C#
    string xml = RadPanelBar1.GetXml();
    
  • VB
    Dim xml as String = RadPanelBar1.GetXml()
    
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • panelbar.xml
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="PanelBar.Examples.PopulatingWithData.XmlDefinition.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />

    <div class="demo-container size-thin">
        <telerik:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar1" Width="100%">
        </telerik:RadPanelBar>
    </div>

    </form>
</body>
</html>

Support & Learning Resources

Find Assistance