Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Adding a checkbox to select rows
posted

A customer wants to add a checkbox column to select the rows. I would like to achieve this on the client side. I already set up the behavior for selecting rows and this works fine.

Where i am struggling is the following:

I created a templateDataField and added the following control:

 

 

<input type="checkbox" name="selectedCheckBox" value="0" onclick="SelectedCheckBox(this)" />

Now i want to know what row the control is residing in and select this row if the checkbox is checked.

How would I go about doing this?