# Angular TreeList Custom Editors

The [Angular TreeList](https://www.telerik.com/kendo-angular-ui-develop/components/treelist) enables you to customize the built-in editing functionality by implementing custom editor components using templates. You can replace the default editors with a suitable Kendo UI for Angular component or custom input control to create a tailored editing experience.

The TreeList provides several [built-in cell editor types](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/editing#built-in-cell-editor-types) by default. You have the ability to customize the built-in editors and render custom ones that better meet your application's requirements by using the [`EditTemplateDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/api/edittemplatedirective).

The following example demonstrates how to use the `EditTemplateDirective` and Reactive Forms to build custom [AutoComplete](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/autocomplete) and [NumericTextBox](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/numerictextbox) editors.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/treelist/editing/custom-reactive-editing/source.txt)

## Setting Up Custom Editors

To implement custom editors for the TreeList columns, use the `EditTemplateDirective` to define editor templates for the columns that need custom editing components:

```html
<kendo-treelist-column field="Position" title="Position">
  <ng-template kendoTreeListEditTemplate let-formGroup="formGroup" let-dataItem="dataItem">
    ...
  </ng-template>
</kendo-treelist-column>
```

Use the [`formGroup`](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/api/edittemplatedirective) field passed by the `EditTemplateDirective` to bind your custom editor to the form and set its value:

```html
<ng-template kendoTreeListEditTemplate let-formGroup="formGroup">
    <kendo-autocomplete [formControl]="formGroup.get('Position')">
    </kendo-autocomplete>
</ng-template>
```

## See Also

* [EditTemplateDirective](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/api/edittemplatedirective)
* [Angular TreeList Editing Basics](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/editing)
* [Angular TreeList Inline Editing](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/editing/inline-editing)
* [API Reference of the TreeListComponent](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/api/treelistcomponent)
* [API Index of the TreeList](https://www.telerik.com/kendo-angular-ui-develop/components/treelist/api)
