Hi, I think I found some incorrect behaviour for treeview checkboxes.
given:
@(Html.Kendo().TreeView()
.Name("tree")
.Checkboxes(checkboxes => checkboxes.CheckChildren(true))
.Items(treeview =>
{
treeview.Add().Text("Furniture").Id("1")
.Expanded(true)
.Items(furniture =>
{
furniture.Add().Text("Tables & Chairs").Id("2").Expanded(true)
.Items(fun =>
{
fun.Add().Text("specialtable 1").Id("9").Expanded(true)
.Items(f =>
{
f.Add().Text("4thlevel 1").Id("13");
});
fun.Add().Text("specialtable 2").Id("10");
});
furniture.Add().Text("Sofas").Id("3");
furniture.Add().Text("Occasional Furniture").Id("4").Expanded(true)
.Items(fun =>
{
fun.Add().Text("occ 1").Id("11");
fun.Add().Text("occ 2").Id("12");
});
});
})
)
Reproduction steps:
1. Check Furniture, then uncheck "specialtable 1" and "occ 1", and then check "Furniture" again. the 2 intermediate nodes, "Tables & Chairs" and "Occasional Furniture" remain in the "partial" state. see kendotreeview1.png
2. Check "Furniture", then uncheck "4thlevel1", then check "Furniture" again. "specialtable1" is not checked at all. See kendotreeview2.png.
3. Check "furniture", uncheck "specialtable1", check "4thlevel1", check "tables & chairs". "special table1" is still checked. See kendotreeview3.png
4. Check "Furniture", uncheck "4thlevel 1", check "tables & chairs". "special table1" is unchecked. See kendotreeview4.png.
It seems likely all of these are related.
given:
@(Html.Kendo().TreeView()
.Name("tree")
.Checkboxes(checkboxes => checkboxes.CheckChildren(true))
.Items(treeview =>
{
treeview.Add().Text("Furniture").Id("1")
.Expanded(true)
.Items(furniture =>
{
furniture.Add().Text("Tables & Chairs").Id("2").Expanded(true)
.Items(fun =>
{
fun.Add().Text("specialtable 1").Id("9").Expanded(true)
.Items(f =>
{
f.Add().Text("4thlevel 1").Id("13");
});
fun.Add().Text("specialtable 2").Id("10");
});
furniture.Add().Text("Sofas").Id("3");
furniture.Add().Text("Occasional Furniture").Id("4").Expanded(true)
.Items(fun =>
{
fun.Add().Text("occ 1").Id("11");
fun.Add().Text("occ 2").Id("12");
});
});
})
)
Reproduction steps:
1. Check Furniture, then uncheck "specialtable 1" and "occ 1", and then check "Furniture" again. the 2 intermediate nodes, "Tables & Chairs" and "Occasional Furniture" remain in the "partial" state. see kendotreeview1.png
2. Check "Furniture", then uncheck "4thlevel1", then check "Furniture" again. "specialtable1" is not checked at all. See kendotreeview2.png.
3. Check "furniture", uncheck "specialtable1", check "4thlevel1", check "tables & chairs". "special table1" is still checked. See kendotreeview3.png
4. Check "Furniture", uncheck "4thlevel 1", check "tables & chairs". "special table1" is unchecked. See kendotreeview4.png.
It seems likely all of these are related.