cancel
Showing results for 
Search instead for 
Did you mean: 

Tree size of expanded items

laurent_chavanis
Explorer
0 Kudos

Hello,

I have a MasterColumn to represent a tree-like hierarchy in a table

and I wonder how I can retrieve the total number of expanded lines of the

tree at runtime, ie retrieving the number "n" that is displayed in the

table footer "Row x of n"

Thanks and best regards,

Laurent

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Laurent,

Check my post /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii

Copy from there method sizeOf(<nodeElement>);

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Laurent,

As far as I know there is no way to get this number directly. You need to calculate it: iterate recursevely data node elements, check whether node element is having children and is expanded and increment number of expanded nodes.

Best regards, Maksim Rashchynski.