Hi,
I wrote some codes like this getting the json data from the controller, which is working correctly:
var data = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "LoadActivityPermissions",
dataType: "json"
}
},
schema: {
model: {
id: "id",
children: "items"
}
}
});
$("#treeview").kendoTreeView({
dataSource: data,
dataTextField: "text",
checkboxes: {
checkChildren: true
}
But for the checkboxes, the result is
when some of the children nodes' checkboxes are checked, the parent checkbox is still left unchecked (which is blank), but it should be like a " - " in the checkbox, which means some of its children are checked.
This happened only when I get the data from the "url" (controller).
In the attached shortcut, the checkbox for "RootActivity" should be filled in a " - ", which means some of its children have been checked.
Could anyone help me with this? It's very urgent for me.
Thanks and regards,
Charles
I wrote some codes like this getting the json data from the controller, which is working correctly:
var data = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "LoadActivityPermissions",
dataType: "json"
}
},
schema: {
model: {
id: "id",
children: "items"
}
}
});
$("#treeview").kendoTreeView({
dataSource: data,
dataTextField: "text",
checkboxes: {
checkChildren: true
}
But for the checkboxes, the result is
when some of the children nodes' checkboxes are checked, the parent checkbox is still left unchecked (which is blank), but it should be like a " - " in the checkbox, which means some of its children are checked.
This happened only when I get the data from the "url" (controller).
In the attached shortcut, the checkbox for "RootActivity" should be filled in a " - ", which means some of its children have been checked.
Could anyone help me with this? It's very urgent for me.
Thanks and regards,
Charles