Select all nodes CheckBoxTree

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Select all nodes CheckBoxTree

Postby halwhen » Thu Apr 29, 2010 10:01 am

Hi, I'm using CheckBoxTree in my project and have a question. Is there a simple way to select all of the nodes in the tree? there is the clearSelection() from the CheckBoxTreeSelectionModel but how would I select all?
Do I have to iterate through the tree and select each node?
halwhen
 
Posts: 2
Joined: Thu Apr 29, 2010 9:46 am

Re: Select all nodes CheckBoxTree

Postby JIDE Support » Thu Apr 29, 2010 10:06 am

Please try to set the digIn flag to true then invoke addSelectionPath(theRoot).

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Select all nodes CheckBoxTree

Postby halwhen » Sat May 01, 2010 7:32 am

That works. Thank you for the quick response.
halwhen
 
Posts: 2
Joined: Thu Apr 29, 2010 9:46 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 58 guests