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

TemplateEditingDirective

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

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>

Selector

[kendoTreeListTemplateEditing]

Export Name

Accessible in templates as #kendoTemplateEditingInstance="kendoTreeListTemplateEditing"

Inputs

NameTypeDefaultDescription

kendoTreeListTemplateEditing

Function

The function that creates the dataItem for new rows.

editService

EditService

The edit service that handles the operations.

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.

removeConfirmation

RemoveConfirmationCallback

A function that confirms if the dataItem will be removed.

In this article
SelectorExport NameInputs
Not finding the help you need?
Contact Support