How to select row in Repeater when user clicks in any cell?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U3RlZmFu?=

    How to select row in Repeater when user clicks in any cell?

    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

  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: How to select row in Repeater when user clicks in any cell?

    simple. on <trjust add a little javascript:

    <tr onclick="this.g etElementsByTag Name('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
    >

    Comment

    Working...