Hi,
I've got a repeater control, that has a checkbox in the first column, and
then a couple of columns with data after that.
What i want to achieve, is that the checkbox in the first column gets
selected if the user clicks in any cell in that row, WITHOUT a postback! Just
like if he clicked directly in the checkbox.

Any ideas on how to do this? Any links maybe? (If possible without ajax, but
if only possible with ajax i'm interested in suggestions as well. )

Thanks

RE: How to select row in Repeater when user clicks in any cell? by brucebarker

brucebarker
Fri Mar 14 10:32:03 CDT 2008

simple. on <tr> just add a little javascript:

<tr onclick="this.getElementsByTagName('input')[0].checked=true;">

-- bruce (sqlwork.com)


"Stefan" wrote:

> Hi,
> I've got a repeater control, that has a checkbox in the first column, and
> then a couple of columns with data after that.
> What i want to achieve, is that the checkbox in the first column gets
> selected if the user clicks in any cell in that row, WITHOUT a postback! Just
> like if he clicked directly in the checkbox.
>
> Any ideas on how to do this? Any links maybe? (If possible without ajax, but
> if only possible with ajax i'm interested in suggestions as well. )
>
> Thanks
>