views:

831

answers:

2

Does anyone know of a JQuery solution for treeview with tristate checkboxes? I'm looking at using YUI, but have more experience in JQuery.

A: 

You can take a look here: http://www.terminally-incoherent.com/blog/2008/03/24/3-value-checkbox-with-jquery/

It is a tri-state checkbox but I think you can adapt it to a treeview.

costin
A: 

jsTree has this as well, you can see a demo here, the setup/call itself is pretty easy:

$("#myTree").tree({ 
   ui : { theme_name : "checkbox" }, 
   plugins : { checkbox : { } }
});

There's also the simpler jQuery Checkbox tree Plugin (demo here), but it doesn't do tri-state, just throwing it out there as a very lightweight option though.

Nick Craver