Donate

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.
$('#TreeRoles').jstree({
 'checkbox': {
  keep_selected_style: false,
  three_state: false,
  cascade: 'up'
 },
 'plugins': ["defaults", "checkbox"]
});

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.

Invalid nested tag div found, expected closing tag input