This is a migrated thread and some comments may be shown as answers.

[Solved] Grid checked items

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 17 Nov 2009, 08:02 AM
Hi,

In my rad grid implementation, first column is checkbox column.
We do not want to select the entire row when checkbox is selected,but i want to access all the items which are checked.
Is there any other way instead of iterating through all rows in grid.

This is because there might be 500 items in grid and only 3 might be checked, so i will end up looping 500 items for 3 items only.

Thanks.
Amit

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Nov 2009, 12:37 PM
Hi Amit,

One suggestion to achieve the functionality is by saving the index of rows where the checkbox resides in an ArrayList and then save in Session. And you can simply access the corresponding rows using the indexes saved in the ArrayList.

Regards,
Shinu.
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or