When you run the sample project, you will notice that even though I have item with Id="1" checked, it does not render checked in the UI.
In the View I have:
.CheckChildren(true) // If change to CheckChildren(false) the issue goes away
In the controller I have:
model.CheckedNodes = new List<TreeViewItemModel>()
{
new TreeViewItemModel()
{
HasChildren = true,
Checked = true, // SUPPORT: This is checked here, but because it has children it does not render CHECKED in UI
Id="1",
Text = "A - this does not obey Checked attribute",
Items = new List<TreeViewItemModel>(){new TreeViewItemModel(){Id = "2",Text = "B"}}
}, new TreeViewItemModel()
{
HasChildren = false,
Checked = true,
Id="3",
Text = "C",
},
};
Create a new Kendo UI MVC project named "SampleKendoUITreeViewIssue" and drop the attached directories in the root of the project.
In the View I have:
.CheckChildren(true) // If change to CheckChildren(false) the issue goes away
In the controller I have:
model.CheckedNodes = new List<TreeViewItemModel>()
{
new TreeViewItemModel()
{
HasChildren = true,
Checked = true, // SUPPORT: This is checked here, but because it has children it does not render CHECKED in UI
Id="1",
Text = "A - this does not obey Checked attribute",
Items = new List<TreeViewItemModel>(){new TreeViewItemModel(){Id = "2",Text = "B"}}
}, new TreeViewItemModel()
{
HasChildren = false,
Checked = true,
Id="3",
Text = "C",
},
};
Create a new Kendo UI MVC project named "SampleKendoUITreeViewIssue" and drop the attached directories in the root of the project.