This question is locked. New answers and comments are not allowed.
hello , someone can teach me how to get ID of each row in telerik grid view?
This is my code
This is my code
@(Html.Telerik().Grid((IEnumerable<companytable>)ViewData["CompanyId"]) .DataKeys(key => key.Add(o => o.ID)) .DataBinding(bind => bind.Server().Select("Create", "table1")) .Name("Unit").Columns(columns => { columns.Bound(o => o.ID); columns.Bound(o => o.CompanyName); }) .Selectable() .Pageable() .Filterable() .Sortable() .RowAction(row => { row.Selected = row.DataItem.ID.Equals(ViewData["Company"]); }) .PrefixUrlParameters(false))