This setting enable cascade check and uncheck of children
Examples
False Remote DataSource
<div id="tree"></div>
<script>
var tree = $('#tree').tree({
checkboxes: true,
dataSource: '/Locations/Get',
cascadeCheck: false
});
tree.on('dataBound', function() {
tree.expandAll();
});
</script>
False Local DataSource
<div id="tree"></div>
<script>
var tree = $('#tree').tree({
checkboxes: true,
dataSource: [ { text: 'foo', checked: true, children: [ { text: 'bar', checked: true }, { text: 'bar2', checked: false } ] }, { text: 'foo2', checked: true, children: [ { text: 'bar2', checked: false } ] } ],
cascadeCheck: false
});
</script>
True
<div id="tree"></div>
<script>
var tree = $('#tree').tree({
checkboxes: true,
dataSource: '/Locations/Get',
cascadeCheck: true
});
tree.on('dataBound', function() {
tree.expandAll();
});
</script>