cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Expand or Collapse in TreeByNestingTableColumn

Former Member
0 Kudos

Hello all,

Can I trigger expand or collapse in TreeByNestingTableColumn by myself?

We need that the table will be visible by default, thus all leaves expanded.

Thanks,

Haguy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Haguy,

You can create a attribute and bind it to expanded property of Tree by nesting

true -> expanded

false-> collapsed

Regards,

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

I tried to change the Expanded value in run-time.

It did change the arrow head icon to "Expanded" but all the data under the branch was hidden. When I pressed the icon twice, one time to collapse it, and another to expand it, the data appeared.

Perhaps the only way to expand the tree correctly is by the user "Expand" event that I cannot capture.

Best Regards,

Haguy

Former Member
0 Kudos

Hi,

Could you pl tell me the place where your code to populate the childrens exist.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

Check the PDF

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce">Tutorial</a>

2.

3.

Regards

Abhijith YS

Former Member
0 Kudos

Hi Abhijith,

I know this tutorial already, I followed it to create my tree.

The first thead is related to the size of the table, not to the status of the leaves.

The second thread is on htmlb, I hope to solve the problem still using Web Dynpro.

But, thanks anyway!

Haguy