or
@(Html.Kendo().MobileView() .Name("detail") .Title("Attendance Monitor") .Layout("MobileLayout") .Content(obj => Html.Kendo().MobileListView() .Name("ParkListDetail") .TemplateId("detailTemplate").AutoBind(true) .DataSource(dataSource => dataSource.Read(read => read.Action("ReadDetails", "Mobile")))) )@(Html.Kendo().ListView(Model) .Name("ParkListSummary") .TagName("div") .ClientTemplateId("summaryTemplate").AutoBind(true) .DataSource(dataSource => dataSource .Read("ReadDetails", "Mobile") .Model(model => model.Id(park => park.ParkID)) ))


@(Html.Kendo().Grid((IEnumerable<MyRecordType>)Model) .Name("rawdatagrid") .Columns(columns => { columns.Bound(session => session.Time).Width(100); columns.Bound(session => session.Glucose).Width(50); columns.Bound(session => session.TestEvent).Width(100); }) .Scrollable() .Sortable() .Resizable(resize => resize.Columns(true)) .DataSource(dataSource => dataSource .Server() .Model(model => model.Id(p => p.Id))) // DataSource "Id" required for "Selectable" .Selectable(selectable => selectable .Mode(GridSelectionMode.Single) .Type(GridSelectionType.Row)) .Events(events => events.Change("onEventChange")))function onEventChange(arg) { //var grid = $("#rawdatagrid").getKendoGrid(); // this is better than the next line var grid = $("#rawdatagrid").data("kendoGrid"); var selectedItem = grid.select(); var selectedText = selectedItem.text(); var index = selectedItem.index(); debugger;}