# Data Binding Basics

The main function of the [Kendo UI for Angular Gantt](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/installation/getting-started) is to display a tree of data records which represent certain tasks in a tabular form in a TreeList pane, and to show the task details, progress, and dependencies in the timeline pane.

The Gantt does not require you to structure the data in a specific way. Instead, the component accepts the following inputs:

* [`data`](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/api/ganttcomponent#data)—An array or an observable of root nodes.
* [`hasChildren`](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/api/ganttcomponent#haschildren)—A function for determining if the node is expandable.
* [`fetchChildren`](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/api/ganttcomponent#fetchchildren)-A function for retrieving the child nodes of a particular node. Returns an array or an observable.

## Data Binding Options

<Row>
  <Column count={[24,24,12]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="/gantt/data-binding/directives">
      <ComponentTitle>Data Binding Directives</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Use built-in directives to bind the Gantt to flat or hierarchical data with automatic sorting and filtering.</ComponentDescription>
    </Component>
  </Column>
  <Column count={[24,24,12]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="/gantt/data-binding/remote">
      <ComponentTitle>Binding to Remote Data</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Connect to server-side data and load Gantt tasks asynchronously through HTTP requests.</ComponentDescription>
    </Component>
  </Column>
  <Column count={[24,24,12]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="/gantt/data-binding/models">
      <ComponentTitle>Binding to Models</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Configure custom model fields for tasks and dependencies using field mapping interfaces.</ComponentDescription>
    </Component>
  </Column>
</Row>

## Basic Example

The following example demonstrates how to use local hierarchical data.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/gantt/data-binding/basic/source.txt)

## Suggested Links

* [Data Binding Directives](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/data-binding/directives)
* [Binding to Remote Data](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/data-binding/remote)
* [API Reference of the GanttComponent](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/api/ganttcomponent)
* [API Index of the Gantt](https://www.telerik.com/kendo-angular-ui-develop/components/gantt/api)
