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

2 posts, 0 answers
  1. Matt
    Matt avatar
    19 posts
    Member since:
    Jan 2011

    Posted 22 Mar 2017 Link to this post

    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

  2. Ianko
    Admin
    Ianko avatar
    1940 posts

    Posted 24 Mar 2017 Link to this post

    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.
Back to Top