I am getting the following error when I enable drag and drop on the treeview:
Uncaught TypeError: Cannot read property 'nextSibling' of undefined
This happens when I try and drag an item in the tree.
I am using Google Chrome but have also observed the same behavior in Firefox.
Here's the code I'm using to create the treeview:
And then to add data to the model I am using:
Thanks for the help!
Uncaught TypeError: Cannot read property 'nextSibling' of undefined
This happens when I try and drag an item in the tree.
I am using Google Chrome but have also observed the same behavior in Firefox.
Here's the code I'm using to create the treeview:
this.dataSource = new kendo.data.HierarchicalDataSource({
schema: {
model: { id : "id", hasChildren: true, children: "layers" }
}
});
// treeview for navigation]
this._treeViewSelector = uiElement;
$(uiElement).kendoTreeView({
dragAndDrop: true,
checkboxes: {
checkChildren: true
},
dataSource: this.dataSource
});
this.dataSource.add({id: id, text: name, expanded: true, checked: true, children: []});
Thanks for the help!