Sorry if this is explained elsewhere - I've been searching and can't find a simple example of how to do this.
I have just started using KendoUI, specifically a grid. I would like to be able to click a row in the grid, and have that event send the user to a detail view for the item selected, passing along the ID of the selected item. It seems like a pretty basic thing, but I can't find an example of this anywhere. Here's the code I've got right now, which just pops an alert:
Thanks!
Eddie
I have just started using KendoUI, specifically a grid. I would like to be able to click a row in the grid, and have that event send the user to a detail view for the item selected, passing along the ID of the selected item. It seems like a pretty basic thing, but I can't find an example of this anywhere. Here's the code I've got right now, which just pops an alert:
@(Html.Kendo().Grid(Model) .Name("tblGrid") .Columns(columns => { columns.Bound(w => w.Id).Hidden(); columns.Bound(w => w.IncidentType).Width(160); columns.Bound(w => w.Location).Width(180); columns.Bound(w => w.IncidentDateTime).Width(120).Format("{0: MM/dd/yyyy H:mm tt}"); columns.Bound(w => w.PostDateTime).Width(120).Format("{0: MM/dd/yyyy H:mm tt}"); }) .DataSource(dataSource => dataSource .Server() .Model(model => model.Id(w => w.Id)) .PageSize(15) .Create("Editing_Create", "Grid") ) .Events(events => events.Change("rowClick")) .Groupable() .Pageable() .Sortable() .Selectable() .Filterable() )<script type="text/javascript"> function rowClick(e) { alert("click happened, what now?"); }</script>Eddie