Jeff Allen
Jeff Allen

Reputation: 17517

GWT Checkbox Selectable Tree

I'm using GWT 2.5 and am looking for a Tree widget which will allow me to have a multi-selection model controlled by checkboxes adjacent to each TreeNode. Something similar to the JQuery plugin described here with the following results:

enter image description here

As you might expect, I'd hope that checking a box would select all children of the checked node, and if any children are unchecked, you'd get the "half-checked" icon (shown by the "Solutions" node) -- so I'll need a three-state checkbox.

Does this widget exist in GWT already, or would I need to code it myself?

Upvotes: 2

Views: 3658

Answers (1)

Andrey Mormysh
Andrey Mormysh

Reputation: 819

There is no default widget in GWT 2.5 that supports this. Your options:

  1. Use third-party library
  2. Implement you own widget

I used to implement my own based on CellTree and although it's feasible - it requires lots of work (custom tree model, cell widgets with renderers and value updater-s). If you flexible on choosing libraries - have a look at Smart GWT's checkbox tree.

Upvotes: 3

Related Questions