Topic: Treeview - only select children

Denre priority asked 1 year ago

When I check the example in the docs

Clicking on the checkbox opens the next layer

When I open the snippet in the sandbox, clicking the checkbox opens the next layer BUT also selects all children.

I do not want the main category to be selectable, but only the children. What am I doing wrong?

Mateusz Lazaru staff answered 1 year ago


Thanks for reporting this! Example in the docs does not work correctly - the snippets show proper behavior of the Treeview plugin. There is no built-in option to allow selecting only children, but I've created a snippet with workaround that may help you.

Parent-Checkbox will always be hidden with this CSS aplied.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.1
  • Device: Laptop
  • Browser: Firefox
  • OS: W10
  • Provided sample code: No
  • Provided link: Yes