The parent node's state remains "unchecked".
The parent node's state should be "indeterminate".
Workaround:
Attach a DataBound event handler to the TreeView:
<kendo-treeview name="DataRestrictionTree" load-on-demand="false" datatextfield="Name" on-data-bound="onDataBound" >
In the handler call the TreeView's updateIndeterminate API method:
function onDataBound(e) {
var treeview = $("#DataRestrictionTree").data("kendoTreeView");
treeview.updateIndeterminate();
}
Hello Jovaughn,
I've tried this in the project attached to the bug report. I uncommented the workaround:
function onDataBound(e) {
//Workaround:
var treeview = $("#DataRestrictionTree").data("kendoTreeView");
treeview.updateIndeterminate();
}
and set the first root node to Checked:
data.Add(new ViewModel
{
ID = 1,
Name = "Root1",
Expanded = false,
Checked = true
});
I did not observe the first node getting unchecked: screenshot.
Regards,
Ivan Danchev
Progress Telerik
This work around does update the indeterminate check boxes correctly.
But, it seems to uncheck any root level checkbox that was and should be checked on load.
In my attached picture the first three root levels should be checked along with the 4th being indeterminate(which is correct in the picture).
Works fine either way in the jquery version but not in the asp.net version with remote date. jquery demo with update method