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

grid datasource id

1 Answer 586 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 26 Jul 2012, 11:05 AM
hi,
im passing in a datasource for my grid schema, however the row ID (data-uid) isn't getting set to the ID of the datasource?

(i'm upgrading from v2011.3.1407 to v2012.2.710)

ok found a way:
var dataRow = $("#grid").data("kendoGrid").dataSource.getByUid(row.data("uid")); 

datarow contains "id" and another other property you assigned to it. 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Jul 2012, 11:53 AM
Hello David,

 Yes, this is one of the breaking changes. The id setting of your model is no longer set as an attribute of the table row. There are cases when model.id is not specified and the grid still needs a way to map a data item to a table row.

All the best,
Atanas Korchev
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
David
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or