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

Grid checked columns

2 Answers 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 09 Jul 2015, 09:54 PM

Hi, I have a grid with a template column that's a checkbox, I want it so that when I click save i will have a javascript function to iterate through each grid row and find the rows that have checked columns.

 

Regards

2 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 10 Jul 2015, 03:00 PM

for anyone that wants to know how:

function getCheckedCamps() {
        var grid = $("#grdAccountCamps");
        grid.find("input:checked").closest("tr").each(function () {
            alert(grid.data("kendoGrid").dataItem(this).CampID);
           
        })
       
    }

0
Dimiter Madjarov
Telerik team
answered on 13 Jul 2015, 11:20 AM

Hello Jim,

Yes, this approach is correct for retrieving the model ids of the checked rows. I am glad the issue is resolved.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or