on 06-27-2006 11:04 AM
hi
Im using tree by nesting table column. im able to display the tree structure and the sub elements.
My problem is this:
1. When the user click on the tree, the two sub items are loaded and displayed.
2. When i click on the same expanded sub tree again, it collapses.
3. When I try to expand the SAME tree again, it loads 2 sets of the two sub items. that is, there are totally four sub rows now.
So, everytime i expand, collapse and expand, two items are getting added to the sub rows.
how do i correct this?
thanks
oj
Hi Manoj
Do you use 'onLoadChildren' event to fill in sub-elements? If so it seems the problem is within boolean property 'childrenLoaded' that must be bound to some boolean context attribute of the parent tree-node. Set the attribute in 'true' just after you have loaded the sub-elements at the first time and check the attribute in your event handler 'onLoadChildren' before loading the sub-elements again next time.
BR
Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.