or


@(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;}<div id="login-popover" data-role="popover" data-popup='{ "height": "220", "width": "250" }' data-close="reset"> <div data-role="view" data-title="Login" data-model="logins" data-init="logins.popupinit" data-show="logins.popupshow"> <div id="login-wrapper" data-role="content">
<form id="login-form"> <input type="email" id="username" data-bind="value: info.username" placeholder="EMAIL"/> <input type="password" id="pwd" data-bind="value: info.password" placeholder="PASSWORD"/> <div> <span class="k-invalid-msg" data-for="username"></span> </div> <div> <a data-role="button" data-click="login">Login</a> <a data-role="button" data-click="register">Sign Up</a> </div> </form> </div> </div> </div>$("#login-popover").data("kendoMobilePopOver").open("#valid-element");$("#login-popover").data("kendoMobilePopOver").close();this.transition = new Transition({ axis: AXIS, movable: this.movable, onEnd: function() { that._transitioning = false; if (movable[AXIS] === 0) { element[0].style.cssText = ""; that.element.hide(); } }});