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

Getting Checkbox checked attribute (boolean value) from grid using jquery

3 Answers 318 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 17 Nov 2010, 10:47 PM
Essentially, what im trying to do is this:
var checked2 = $(row.cells[13].innerHTML).val;
which i know is the wrong way to do it for checkboxes, but i dont know where to begin on how to get the checkbox value from a row, so i can assign a form value to it on row select. I have the onRowSelect function which works with all other values as theyre strings/decimals/ints but the checkbox value eludes me. Any insight?

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 18 Nov 2010, 09:04 AM
Hi John,

 You can try this:

var checked = $(row.cells[13]).find(':checkbox').attr('checked');

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 18 Nov 2010, 05:49 PM
Wow. Worked perfectly! Thank  you.
0
asif
Top achievements
Rank 1
answered on 29 Mar 2011, 11:41 AM
Hi,
I am using telerik grid in asp.net mvc2.0.

there is check box field .

i want to get the selected rows ID  in controller.

i want to save the selected rows ID in to the database.

Please help me ASAP.

i have waisted more that 2 week in this issue.

prompt response will appriciated.

thanks in advance.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
John
Top achievements
Rank 1
asif
Top achievements
Rank 1
Share this question
or