We are using kendo treeview to display hierarchial datasource in cshtml.
One of our requirement is to check/uncheck all children checkboxes when a parent is checked/unchecked, so we used checkChildren property to
achieve this.
But the issue is when we uncheck a child, the parent should not get unchecked, even if we have one child inside the parent.
Can you please provide jquery code snippet to achieve this?
Thanks.
One of our requirement is to check/uncheck all children checkboxes when a parent is checked/unchecked, so we used checkChildren property to
achieve this.
@(Html.Kendo().TreeView()
.Name(
"SampleList"
)
.Checkboxes(chk => { chk.CheckChildren(
true
); })
.DragAndDrop(
false
)
.ExpandAll(
true
)
.....
But the issue is when we uncheck a child, the parent should not get unchecked, even if we have one child inside the parent.
Can you please provide jquery code snippet to achieve this?
Thanks.