# ASP.NET Core OrgChart Overview

The Telerik UI OrgChart TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI OrgChart widget.

The OrgChart is a flexible organizational chart component designed to represent a structure of an organization. The OrgChart can illustrate the hierarchy in a company, department, team, or other hierarchical structures.

* [Demo page for the OrgChart HtmlHelper](https://demos.telerik.com/aspnet-core/orgchart/index)

* [Demo page for the OrgChart TagHelper](https://demos.telerik.com/aspnet-core/orgchart/tag-helper)

## Basic Configuration

The following example demonstrates the basic configuration of the OrgChart component.

```Razor HtmlHelper
    @(Html.Kendo().OrgChart<Kendo.Mvc.Examples.Models.OrgChartEmployeeViewModel>()
        .Name("orgchart")
        .DataSource(dataSource => dataSource
            .Read(read => read.Action("Read", "OrgChart"))
            .Model(m => {
                m.Id(f => f.ID);
                m.ParentId(f => f.ParentID);
                m.Name(f => f.Name);
                m.Title(f => f.Title);
                m.Avatar(f => f.Avatar);
                m.Expanded(f=>f.Expanded);
            })
        )
    )
```

```Razor TagHelper
    <kendo-orgchart name="orgchart">
        <orgchart-datasource type="DataSourceTagHelperType.Ajax">
            <transport>
                <read url="@Url.Action("Read","OrgChart")" />
            </transport>
            <schema>
                <orgchart-model id="ID" 
                                parent-id="ParentID" 
                                expanded="true"
                                name="Name" 
                                title="Title" 
                                avatar="Avatar">
                    <fields>
                        <field name="ParentID" nullable="true"></field>
                        <field name="ID" type="number"></field>
                        <field name="Name" type="string"></field>
                        <field name="Title" type="string"></field>
                        <field name="Avatar" type="string"></field>
                    </fields>
                </orgchart-model>
            </schema>
        </orgchart-datasource>
    </kendo-orgchart>
```

```C# Controller
    public JsonResult Read([DataSourceRequest] DataSourceRequest request)
    {
        List<OrgChartEmployeeViewModel> data = new List<OrgChartEmployeeViewModel>()
        {
            new OrgChartEmployeeViewModel() { ID = 1, Name = "Clevey Thrustfield", Title = "CEO", ParentID = null, Expanded = true, Avatar = "../content/web/orgchart/people/1.jpg"  },
            new OrgChartEmployeeViewModel() { ID = 2, Name = "Sean Russel", Title = "Financial Manager", ParentID = 1, Expanded = true, Avatar = "../content/web/orgchart/people/2.jpg"  },
            new OrgChartEmployeeViewModel() { ID = 3, Name = "Andrew Berry", Title = "Team Lead", ParentID = 1, Expanded = true, Avatar = "../content/web/orgchart/people/3.jpg"  },
            new OrgChartEmployeeViewModel() { ID = 4, Name = "Dilyana Newman", Title = "Accountant", ParentID = 2, Expanded = false, Avatar = "../content/web/orgchart/people/4.jpg"  }
        };

        return Json(data);
    }
```

## Functionality and Features

* [Binding](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/binding/binding-overview)—You can bind the OrgChart to local or remote data.
* [Editing](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/editing)—The OrgChart provides a built-in editing functionality, which is enabled by default.
* [Grouping](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/grouping)—The OrgChart enables you to group root nodes or nodes that have the same parent.
* [Templates](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/templates)—The OrgChart allows you to customize its nodes and group headers by using [Kendo Templates](https://docs.telerik.com/kendo-ui/framework/templates/overview).
* [Accessibility](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/accessibility/overview)—The OrgChart is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support.

## Next Steps

* [Getting Started with the OrgChart](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/getting-started)

* [Basic Usage of the OrgChart HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/orgchart)

* [Basic Usage of the OrgChart TagHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/orgchart/tag-helper)

## See Also

* [Using the API of the OrgChart for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/orgchart/api)

* [Knowledge Base Section](https://www.telerik.com/aspnet-core-ui/documentation/knowledge-base)

* [Razor Pages binding](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/diagrams-and-maps/orgchart/binding/razor-page)
