The DropDownTree's refresh API method re-renders only the noDataTemplate and the footerTemplate. The nodes are not re-rendered.
Only the noDataTemplate and the footerTemplate are re-rendered.
The method should also re-render the nodes, similarly to the DropDownList's refresh method, which re-renders its items.
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
});Using setDataSource method on a working DropDownTree, with same initial settings leads to not working clea button and not expanding a collapsed node.
Dojo: https://dojo.telerik.com/uLUNudEJ
Steps (clear button):
1. Open dojo and check that everything works correctly
2. Click reload button (calls setDataSource)
3. Clear all button does not work and cannot deselect the item from the tag's clear button.
Steps (expand):
1. Open dojo and open popup to see everything expands as expected
2. Click reload
3. Open popup
4. The last (initially collapsed) node cannot be expanded.
If the DropDownTree is configured without checkboxes (single selection), the X button shouldn't be present.
The clear button appears
The clear button shouldn't be present.