New to Kendo UI for AngularStart a free 30-day trial

A directive that encapsulates the editing operations of the TreeList when using Template-Driven Angular Forms. See example.

Definition

Package:@progress/kendo-angular-treelist

Selector:[kendoTreeListTemplateEditing]

Export Name:Accessible in templates as #kendoTreeListTemplateEditingInstance="kendoTreeListTemplateEditing"

Syntax:

html
<kendo-treelist [kendoTreeListTemplateEditing]="createNewItem">
  <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
  <kendo-treelist-column field="age" title="Age"></kendo-treelist-column>
</kendo-treelist>

Inputs

The edit service that handles the operations.

The function that creates the dataItem for new rows.

newItemId

(item: any, parent: any) => any

Gets or sets a function that determines the unique identifier for new items. The function receives the item and its parent as parameters and must return an ID.

A function that confirms if the dataItem will be removed.