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

FInd row of template item client side

2 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 11 Dec 2008, 08:11 PM
I have a grid and in the grid I have a template column which is an asp checkbox called "Purchase". I have a client side event handler for the onclick of the checkbox. I need to find the row of the check box just checked. I do not want to use a gridclientselectcolumn because I don't want the user to be able to click anywhere in the row to select the row - I only want them to be able to select the row by clicking in the checkbox. What is the code needed on the javascript side to find what row was just clicked?

Thanks,
Laura

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 12 Dec 2008, 05:05 AM
Hello Laura,

You can go through the following code library submission links to achieve the required scenario.
To allow selection for grid row upon checking a checkbox in GridTemplateColumn, client side you can refer the following link:
Selecting rows client side via checkbox

Also to disable selection elsewhere but allow selection only when a GridClientSelectColumn checkbox is clicked you can refer the following link:
ClientSideSelectColumn - Disallow other selection

Thanks
Princy.
0
Laura
Top achievements
Rank 1
answered on 12 Dec 2008, 02:35 PM
Thank you Princy. I have been trying to get the second suggestion working. As for the first suggest you posted :

You can go through the following code library submission links to achieve the required scenario.
To allow selection for grid row upon checking a checkbox in GridTemplateColumn, client side you can refer the following link:
Selecting rows client side via checkbox


Will this still work with the current version of telerik controls or is the code from an older version?
Tags
Grid
Asked by
Laura
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Laura
Top achievements
Rank 1
Share this question
or