Kendo MVC: Adding Edit, Delete Buttons to Grid
问题 Assuming I have the below table: @Html.Kendo().Grid(Model).Name("Staff").Columns(x => { x.Bound(y => y.StaffId); x.Bound(y => y.FirstName); x.Bound(y => y.LastName); x.Bound(y => y.Email); x.Bound(y => y.Phone); x.Command(y => y.Custom("Edit").Action("edit", "controller", new { id = ????? })); }).Sortable().Scrollable().Pageable(x=> x.PageSizes(true)).Filterable() How can I pass the primary key value (StaffId in this case) associated to the row to the object route values similar to the way it