Twin column select with trees

Hi All,

Is it possible to have twin column select with multiple trees in it ? Instead of list can we have trees in it ?

http://demo.vaadin.com/sampler#TwinColumnSelect

Regards
sachin

There is no ready made component for that but you can pretty easily create a custom component with two Tree components and couple of buttons to implement what you want.

I guess you may need to select tree nodes from left tree, and then move them to right tree, if I am correct, there are two solution:

  1. Build a multiple selectable tree, get those tree nodes you want to move to the right, build target tree after click >>;
  2. Use Tree.setDropHandler(…) to drag-drop tree nodes from left to right column.

If needed, handle nodes from right to left in the same way.

Hello!

did you get it to work? If so, would you mind posting your solution? Because what you have described is exactly what we need, too.

Thanks,
Chris