R1 2019 Release is now here with MultiColumnComboBox component and more! Register now for the Webinar.

PanelBar - XML Definition

  • Products
    • RadEditor
    • RadPanelBar
    • RadMenu
    • RadTabStrip
  • Support
    • Knowledge Base
    • Forums
    • Articles
    • FAQ
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

You can seamlessly populate RadPanelBar from XML.

  • Loading from XML file
  • 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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>

    <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%">


Find Assistance

Help Us Improve

Was this example helpful?