views:

158

answers:

2
+1  Q: 

Tree of checkboxes

I'm looking for a "tree of checkboxes" widget for Javascript. I tried to use jquery-checktree which purports to do exactly what I want, however it has the following problems:

  • It doesn't recognize checkboxes that are already checked and renders everything as unchecked.
  • It starts off with everything collapsed and doesn't give an option to start with everything uncollapsed
  • Each line of my tree starts indented from the line above, even if they are <li> in the same <ul>.

Can anybody recommend one that works, or fixes for this one?

+1  A: 

You could try the YUI TreeView. They have an example with checkboxes. It might not be ideal for all uses, but it's pretty good.

Colin Gislason
A: 

ExtJS 3.x has one. I have not used it, but it looks nice. Not sure if you're willing to add ExtJS to your stack...

Upper Stage