Help! I have NO idea what I'm doing wrong! The initial node loads and shows an expand icon but nothing happens when it's clicked. No request is even attempted. I have the following code:
The 'http://localhost:500/api/users/' is an ASP.NET Web API controller method that returns the following JSON:
What am I doing wrong? Any ideas would help!
var
homogeneous =
new
kendo.data.HierarchicalDataSource({
transport: {
read: {
url:
'http://localhost:500/api/users/'
,
dataType:
"json"
}
},
schema: {
model: {
id:
"id"
,
hasChildren:
"load_on_demand"
}
}
});
$(
"#tree"
).kendoTreeView({
dataSource: homogeneous,
dataTextField:
"label"
});
The 'http://localhost:500/api/users/' is an ASP.NET Web API controller method that returns the following JSON:
[{
"id"
:12345,
"label"
:
"NODE 1"
,
"load_on_demand"
:
true
}]
What am I doing wrong? Any ideas would help!