Hi,
I have a treeview and bind datasource form web api.
When I tried to drag and drop node and an error occurred, "Unable to get value of the property 'length': object is null or undefined " in IE9.
There is my code
Any advice?
I have a treeview and bind datasource form web api.
When I tried to drag and drop node and an error occurred, "Unable to get value of the property 'length': object is null or undefined " in IE9.
There is my code
<
script
>
$(function () {
var serviceRoot = "http://localhost:12181";
var homogeneous = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: serviceRoot + "/api/Group",
dataType: "json"
}
},
schema: {
model: {
id: "Id",
hasChildren: "hasChildren"
}
}
});
$("#treeview").kendoTreeView({
dragAndDrop: true,
dataSource: homogeneous,
dataTextField: "Name"
});
});
</
script
>
<
div
id
=
"treeview"
></
div
>
Any advice?