on 01-28-2008 8:11 AM
Hi Experts,
I need a tree structure with the check boxes.If I am selecting the parent node the entire tree structure under that should be selected automatically.That strucutre should be saved in an array.Can you please help me for that?Please give step by step procees.
Regards
Nutan
Hi,
To Acheive the following
"I need a tree structure with the check boxes"
create a recursive node
add an attribute of type boolean and map this to the check box
once your recursive node is populated with data and bind to tree , use the tree by nesting ui element for the tree.
"If I am selecting the parent node the entire tree structure under that should be selected automatically"
Create an event handler for the check box.
if checked recusively set the attribute value to true for the attribute bound to the check box.
"That strucutre should be saved in an array"
While iterating try to add this as part of the array.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayyapparaj,
Thanks for the reply.I have created an attribute under a recursive node.But unable to follow you
"once your recursive node is populated with data and bind to tree , use the tree by nesting ui element for the tree "
after that.I have created an event handler also for the checkbox.Please provide some codes if possible.
Needs urgent help.
Regards
Nutan
.
Hi Nutan,
First of all, can u please tell me , why u want to use a check box with the tree??
Apart from that check this doc, u can find the code, context structure as well as event mapping
regards
Sumit
Hi sumit,
I need the check box with the tree so that whatever I select will be saved as a new arraylist.The tree structure is the general structure but according to my requirement I want to select the nodes.
Like example:
A---A1,A2,A3
A1--B1,C1
A2--B2,C2
If I select the A1,A2 then the entire structure of A1 and A2 has to be selected and saved as a new arraylist.Thanks for the documents
regards
Nutan
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.