OrgChart - Expand/Collapse

  • Management
    • Kate
    • Peter
    • Dev
      • Arnold
      • Mike
      • QA
        • Tim
        • Nora
    • Support
      • David
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

RadOrgChart supports Expand/Collapse of the RadOrgChart hierarchical tree. The functionality could be enabled by setting the EnableCollapsing property to true. Also Expand/Collapse of a group is available. To enable that behavior set EnableGroupCollapsing to true.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="OrgChart.Examples.ExpandCollapse.DefaultCS" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />

    <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:RadAjaxPanel runat="server" ID="RadAjaxPanel">
            <telerik:RadOrgChart RenderMode="Lightweight" ID="RadOrgChart1" runat="server" EnableCollapsing="true" EnableGroupCollapsing="true"
                Skin="Office2010Blue" />

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?