on 12-28-2007 10:45 AM
Hi ,
we need to add the "Select all" functionality for the a table used in one of the screens. The examples I have found for this would select all the elements of the node bound to the table. However, we need to select only those elements which are presently visible on the screen, which would change if the user presses the previous or next button.
Please guide me on how it can be possibly done .
Edited by: Dhruwat Bhagat on Dec 28, 2007 11:45 AM
Hi Dhruawat,
Modify the example functionality SelectAll like this:
Create visRow context attribute of type int. Bind this to firstVisibleRow property of table.
Check visibleRowCount value (default is 5)
//for loop on the table node
for(int i=visRow ;i<(visRow + visibleRowCount value );i++)
{
select the element;
}
// end of for loop
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Assign visiblerowcount with some integer value. say count.
2. for(int i=0;i<count; i++)
{
node.setSelected(i,true);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
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.