We have a Vuejs app that is using the Kendo DropDownTree control, with checkboxes, to display a hierarchy of data.
The problem is, there is a difference with how the control returns the checked IDs when the parent node is expanded VS collapsed.
To illustrate the problem:Both parents nodes below have 2 child nodes.
Parent1 happens to be expanded. If I check parent1, the control then checks child1+child2 automatically. And the "@change" function sends all three IDs. This is the desired affect.
Parent2 has 2 child nodes. But the child nodes can't be seen because parent2 is collapsed. When Parent2 is checked, the "@change" only sends parent2 ID. The child Ids are NOT sent. Why is this? Why the difference vs parent1 example?
Also, the child nodes for parent2 do get checked properly by the control. I can see this if I expand parent2. The child nodes IDs just never got sent to the "@change" when it's parent2 was clicked and collapsed.
_parent1
-child1
-child2
_parent2
Is there a way to get all the checked IDs from "$event.sender._values" whenever any node is checked?
Here is how my dropdowntree is configured along with the change function:
<dropdowntree:data-source="items"
tagMode="single"
:autoClose="false"
:checkboxes-check-children="checkChildren"
:check-all="true"
:placeholder="placeholder"
dataTextField="text"
dataValueField="id"
@change="onChange"
:value="selectedItems"
style="width: 100%"
height="400px"
:load-on-demand="true"
>
onChange($event) {
let vm = this
vm.$emit('onHierarchyChange', $event.sender._values)
}