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

Treeview inside Dropdownlist

4 Answers 510 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tan-Tan
Top achievements
Rank 1
Tan-Tan asked on 05 Dec 2012, 07:19 AM
Hi,
I try to create a data source based treeview, to be opened like a dropdownlist, in the same form with other dropdownlist items and comboboxes, so I would like them to look similar.

4 Answers, 1 is accepted

Sort by
0
Vitantonio
Top achievements
Rank 1
answered on 05 Dec 2012, 08:32 AM
Hi,
also I am interested.
You can post the solution.

Thanks
0
Georgi Krustev
Telerik team
answered on 06 Dec 2012, 12:37 PM
Hello guys,

 
This functionality is not supported out of the box. If you need further assistance on this, you can contact Telerik Premium services.

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John DeVight
Top achievements
Rank 1
answered on 21 Mar 2013, 01:33 PM
I've created a library called "Kendo UI Extended API" which can be found on GitHub at: https://github.com/jsExtensions/kendoui-extended-api which has a DropDownTreeView widget.  I've written an article about how to use it at: Kendo UI Extended API: DropDownTreeView Widget.

Here is an example.

The HTML:
<div id="dropDownTreeView">
</div>
The JavaScript:
var dropDownTreeView = $("#dropDownTreeView").kendoExtDropDownTreeView({
    treeview: {
        dataSource: new kendo.data.HierarchicalDataSource({
            data: [
                {
                    text: "Furniture", items: [
                      { text: "Tables & Chairs" },
                      { text: "Sofas" },
                      { text: "Occasional Furniture" }
                    ]
                },
                {
                    text: "Decor", items: [
                      { text: "Bed Linen" },
                      { text: "Curtains & Blinds" },
                      { text: "Carpets" }
                    ]
                }
            ]
        })
    }
}).data("kendoExtDropDownTreeView");

Hope this helps...

Regards,

John DeVight

0
Carrie
Top achievements
Rank 1
answered on 11 Sep 2013, 06:34 PM
Thanks John I will look at your extended API.
 
Can you tell me if its possible to incorporate the use of AutoComplete into your implementation?

I have the requirement for a Dropdown that has Autocomplete functionality as well as a tree structure.

Thanks,
Carrie
Tags
TreeView
Asked by
Tan-Tan
Top achievements
Rank 1
Answers by
Vitantonio
Top achievements
Rank 1
Georgi Krustev
Telerik team
John DeVight
Top achievements
Rank 1
Carrie
Top achievements
Rank 1
Share this question
or