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

How to get Grid Row item with cell values in client template check box onclick event without grid selection option

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Senthilkumar
Top achievements
Rank 1
Senthilkumar asked on 27 Jun 2015, 07:33 AM

Hi Team,

Please give sample to get rowitem with all cell values of that particular row in kendo grid and without enabling selection option. 

columns.Group(g => g.Title("Access").Columns(a=>
        {
            a.Bound(p => p.IsRead).Title("Read").Width(50)
                .ClientTemplate("<input type='checkbox' #= IsRead ? checked='checked' : '' #  onclick='GetRowRead(#= IsRead #, #= IsWrite #, this.checked)' ></input>");
            a.Bound(p => p.IsWrite).Title("Write").Width(50)
               .ClientTemplate("<input type='checkbox' #= IsWrite ? checked='checked' : '' # onclick='GetRowWrite(#= IsRead #, #= IsWrite #, this.checked)' ></input>");
        })

 

 

Thanks

Senthilkumar N

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 01 Jul 2015, 06:59 AM

Hello Senthilkumar,

 

The Kendo Grid dataItem method returns the data item to which the specified table row is bound. In your case in click event of the check box you can find and pass the table row element to the dataItem method and retrieve the data item object that holds the values for the current row. 

 

Regards,
Boyan Dimitrov
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
Senthilkumar
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or