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

Client Side OnClick Issues

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan Beaver
Top achievements
Rank 1
Ryan Beaver asked on 20 Feb 2009, 07:12 PM
Hello All,

We're trying to accomplish something fairly simple. We have a grid with 4 columns, the first being a name, the last three being checkbox columns. Via javascript, we want to automatically check additional column/rows in our grid. So, we hooked up to the onclick() event just fine, but because the entire row is selected, we're just getting the checkbox that was selected and having a difficult time determining exactly what checkbox that is. What we want to do, is for instance, if the check the checkbox in column 4, automatically check the boxes in 3 and 2 of the same row, but we're having a tough time after we capture the onclick().

Any examples or suggestions would be greatly appreciated,
Ryan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Feb 2009, 09:26 AM
Hi Ryan,

Here code library submission which explains how you can access template controls on the client side. Go through it and see if it helps.
Accessing server controls in a grid template on the client

Thanks
Shinu



Tags
Grid
Asked by
Ryan Beaver
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or