cancel
Showing results for 
Search instead for 
Did you mean: 

Number of rows of a table

Former Member
0 Kudos

Is there any quick way to get the number of rows of a table UI, which data come from a recursive node, with master column and expandable hierarchically?

Thanks!

Tony Kwan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Tony,

Please check my blog post <a href="/people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii">Master of Columns, Part II</a>. Namely, function <b>sizeOf</b> do exactly what you need -- calculates size of expanded recursive node. If you whant to get total number of elements, then just remove check for <i>isExpanded</i>.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi Valery,

Your elegant code does exactly the clumsy stuff that I need. Thanks!

Tony

Answers (2)

Answers (2)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Tony

It seems API does not contain quick way for this. You have to write recursive function that will iterate thru the tree and calculate number of rows in all the expanded branches.

BR

Sergei

lajitha_menon
Contributor
0 Kudos

Cant you use wdContext.nodeTableX().size() to get the entries on the table?

LM