Hi
I have a problem with the DropDownTree component.
From a remote data source type json I am getting a tree with two levels of data but it only shows the first level.
Code:
$("#dropdowntree").kendoDropDownTree({
dataSource: {
transport: {
read: {
url: "/api/getData",
type: "POST",
dataType: "json",
contentType: "application/json; charset=utf-8"
}
}
},
checkboxes: true
});
Response:
[
{
text: "Furniture", expanded: true, items: [
{ text: "Tables & Chairs" },
{ text: "Sofas" },
{ text: "Occasional Furniture" }
]
},
{
text: "Decor", items: [
{ text: "Bed Linen" },
{ text: "Curtains & Blinds" },
{ text: "Carpets" }
]
}
]
$("#dropdowntree").kendoDropDownTree({
dataSource: {
data: [
{
text: "Furniture", expanded: true, items: [
{ text: "Tables & Chairs" },
{ text: "Sofas" },
{ text: "Occasional Furniture" }
]
},
{
text: "Decor", items: [
{ text: "Bed Linen" },
{ text: "Curtains & Blinds" },
{ text: "Carpets" }
]
}
]
},
checkboxes: true
});