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

Grid Binding

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 11 Dec 2012, 05:12 AM
how to get the ID(Primary Key) of the row in the grid.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 11 Dec 2012, 07:27 AM
Hi Manoj,

This could be easily done through the dataItem method.
var grid = $("#grid").data("kendoGrid");
grid.dataItem(trElement).theIdField;
//where trElement is the corresponding row

I hope this helps.

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