cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically set Visible Row Count for tree table in sap ui5

Former Member

Hello experts,

Currently I have binded a tree table with expand level to 6. Like below

Header1

Child 11

Child 111

Child 1111

Child 12

Child121

Now I need to set the Visible Row Count of the tree table based on the data being displayed on press of individual collapse/expand inside the table. Like below

Thanks,

Magesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Iftah,

Thanks for your suggestion. However, that was not the concern/issue I raised.

My expectation/issue:

To dynamically set the visible row count of tree table depending on how many rows are expanded. If initially there are 3 root nodes you would like to set visible row count to 3. Then after expanding one node which has 5 child nodes then you would like to set the visible row count to 5+3=8.

Got the below solution from SAP.

https://jsfiddle.net/3qfoqsky/

Thanks,

Magesh

Answers (1)

Answers (1)

iftah_peretz
Active Contributor

Hey,

I'm not sure I'm getting your answer clearly, but could this help you?