CheckBoxTree

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

CheckBoxTree

Postby pourmo » Mon May 07, 2007 7:59 am

Hi
I am using the CheckBoxTree Item and I want to know If there is a functionality where I can get All the TreePaths for the Nodes that have been ticked.

Many Thanks
Mo
pourmo
 
Posts: 88
Joined: Fri Oct 01, 2004 9:37 am
Location: UK

Postby JIDE Support » Mon May 07, 2007 8:28 am

The method is getCheckBoxTreeSelectionModel().getSelectionPaths(). Just rememeber all the methods related to check box states are on getCheckBoxTreeSelectionModel().

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

Postby pourmo » Mon May 07, 2007 9:12 am

Hi
I have a tree with a top node having 4 children. I tick the top node and then all the child nodes get ticked automatically. When I call
getCheckBoxTreeSelectionModel().getSelectionPaths() it returns me the reference to a single TreePath.
How can I find out the path to the selected checkboxes.
regards,
Mo
pourmo
 
Posts: 88
Joined: Fri Oct 01, 2004 9:37 am
Location: UK

Postby JIDE Support » Mon May 07, 2007 9:15 am

That's correct behavior. CheckBoxTree is in digin mode. Any parent path selected indicates all its children paths are selected. So no need to return all the children paths.

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


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 10 guests

cron