on 06-27-2006 11:34 AM
hi
I need to control the size of the table - rows when the user expands and collapses the trees.
I have set the paginator to a context attribute, and when im populating the table, i count the number of header rows and the children rows and calculate the number of rows to be displayed.
But when the user collapses a tree, the size of the table must reduce to the correct number of rows which are actually displayed.
I tried to use the 'Expanded' boolean, but somehow it doesnt work. any other approach?
thanks
oj
hi
try this
set the visiblerowcount to -1 (minus 1)
hope this helps,
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just a small variation in this...the max number of rows i can display is 20. any more and i would have to use th e paginator controls.
thanks
oj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be achieved using a calculated attribute "VisibleRowCount", type "integer", readOnly=true.
int getVisibleRowCount(...)
{
int rowCount = wdContext.node<TableDataSource>().size();
return rowCount > 20
? 20
: -1; /* show all rows */
}
Bind Table.visibleRowCount property to this attribute.
Armin
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.