This is a migrated thread and some comments may be shown as answers.

Add new item to Treeview and use the AutoComplete in the node

1 Answer 339 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 22 Mar 2017, 12:58 PM

Hi,

I have a treeview and would like users to be able to add a new item to the treeview. When the new item is added I would like to have an AutoComplete field they can type the new node name into and use server-side filtering to retrieve the available values. 

 

How can I do this?

 

Thanks in advance

 

Matt

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 24 Mar 2017, 09:44 AM

Hello Matt,

TreeView has not built-in functionality to add new nodes and sync that with a remote data source. 

The TreeList is more appropriate when it comes to editing Hierarchical data: http://demos.telerik.com/kendo-ui/treelist/editing

If you need such a functionality with the TreeView, you can take a look at this how-to article: http://docs.telerik.com/kendo-ui/controls/navigation/treeview/how-to/edit-nodes-via-form.  In a similar manner, you can have a custom template that renders UI to accommodate a possible custom editing functionality and implement a button to adds child nodes.  

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeView
Asked by
Matt
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or