cancel
Showing results for 
Search instead for 
Did you mean: 

tree in a table

MG3
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

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

MG3
Contributor
0 Kudos

hi siarhei

thanks for the quick response. actually, i was setting the attribute, but in a wrong way. thanks to you...i realised and corrected it. nevertheless...full points to you

regards,

manoj

Answers (0)