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

Load from XML

  • Team: Management
    • CEO
      Certificates: MCAD
    • CTO
      Certificates: MCP
    • Team: Unit
      • UnitManager
        Certificates: MCSD
      • Team: Dev
        • TeamLead
          Certificates: MCTS

You can seamlessly populate RadOrgChart from XML.

  • Loading from XML file
    RadOrgChart1.LoadContentFile("RadOrgChart.xml");
    
  • Loading from XML string
    RadOrgChart1.LoadXml("<RadOrgChart><Nodes><Node>...</RadOrgChart>");
    

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

  • C#
    string xml = RadOrgChart1.GetXml();
    
  • VB
    Dim xml as String = RadOrgChart1.GetXml()
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • RadOrgChart.xml
<%@ Page AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="OrgChart.Examples.PopulatingWithData.XmlFile.DefaultCS"Language="c#"  %>
<%@ 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 no-bg">

        <telerik:RadOrgChart RenderMode="Lightweight" runat="server" ID="RadOrgChart1">
        </telerik:RadOrgChart>

    </div>

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

Support & Learning Resources

Find Assistance