on 11-16-2006 10:29 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cant you use wdContext.nodeTableX().size() to get the entries on the table?
LM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.