Treelist Angular

1 Answer 48 Views
DropDownList TreeList
Bobby
Top achievements
Rank 1
Bobby asked on 23 Sep 2024, 10:42 AM

I have a kendo-treelist in Angular

 

Edit mode has only Number, Text or boolean,

 <kendo-treelist-column field="Enhed" title="Enhed"  editor="text"
    [style]="{'text-align': 'left','min-width':'100px','padding': '0px'}"
      [headerStyle]="{'text-align': 'left'}">
       <ng-template kendoTreeListCellTemplate let-dataItem let-rowIndex="rowIndex" let-column="Enhed">
        <span *ngIf="!kendotreelist.isEditingCell()">{{dataItem.Enhed}}</span>
        <select *ngIf="kendotreelist.isEditingCell()" type="text" [(ngModel)]="dataItem.Enhed" >
          <option *ngFor="let enhed of enheder" [value]="enhed">{{enhed}}</option>
        </select>
      </ng-template>
    </kendo-treelist-column>

 

I need to make it custom select instead.

Is there any one who knows how?

 

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 24 Sep 2024, 08:44 AM

Hi Bobby,

The listed edit modes are those coming as built-in (check the possible editor property values). However, the developer can use any input control for specific records such as dropdown lists, autocomplete dropdowns, and others. To achieve this use the kendoTreeListEditTemplate template.

For more details and examples of how to set up custom edit control, please check the following article:

https://www.telerik.com/kendo-angular-ui/components/treelist/editing/custom-editors

I hope this helps.

Regards,
Martin Bechev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DropDownList TreeList
Asked by
Bobby
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or