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

How To Insert Or Add Emojis In Microsoft Teams Status Message

Pass GUID As Parameter To Action Using ASP.NET MVC ContribGrid