Hello,
I would like to use the ASP.NET MVC Kendo UI Grid to render a list of records that have a "Detail" button for each record (similar to this look: https://demos.telerik.com/aspnet-mvc/grid/custom-command).
I am currently using an AJAX-bound grid. I need to pass two values to the "Details" controller. Here is what I have so far:
.Columns( c=>{ c.Bound(c => personId); c.Bound(c => positionId);
// Want to use a "Details" button to pass personId and positionId to HomeController/Details/{personId}/{positionId}
c.Command( c => cmd.Custom("Details"))
}).DataSource(d => d .Ajax() .Read(r => r.Action("GetPersons", "Home")))
However, the business logic in our application requires two values passed to the "Details" controller (see below).
1.[HttpGet] public ActionResult Details(int personId, int positionId)2.{3. Person person = Person.GetPerson(personId, positionId, myConnection);4. return View(person);5.}