How To Disable Cascade Down Selection Of jsTree Child Nodes On Page Load
Hello,
I'm currently working on a JavaScript Library jsTree that mimics the behavior and UI of a TreeView control in .NET. One of the issue that's bothering me was to disable the cascade down selection of jsTree Child Nodes On page load if a parent node is selected. The solution is to set the three_state attribute to false and cascade to empty or 'up as presented in the code below.
I'm currently working on a JavaScript Library jsTree that mimics the behavior and UI of a TreeView control in .NET. One of the issue that's bothering me was to disable the cascade down selection of jsTree Child Nodes On page load if a parent node is selected. The solution is to set the three_state attribute to false and cascade to empty or 'up as presented in the code below.
$('#TreeRoles').jstree({ 'checkbox': { keep_selected_style: false, three_state: false, cascade: 'up' }, 'plugins': ["defaults", "checkbox"] });
Comments
Post a Comment