or
var viewModel = kendo.observable({ accept: function () { // ajax call }, reject: function () { utils.showReject(); // modalview // get response from showReject (i.e., if they hit Reject, // give me their comments from the input) // ajax call with comments from above }});var showReject = function () { $("#reject-view").show().data().kendoMobileModalView.open(); }<div data-role="modalview" id="reject-view" style="display: none; width: 70%;"> <div data-role="header"> <div data-role="navbar"> <span>Are you sure?</span><br /> <textarea rows="3" placeholder="Enter Reject Reason" style="width: 95%; padding: 5px;"></textarea><br /> <a data-click="app.closeModal" data-modalid="#reject-view" data-role="button">Reject</a> <a data-click="app.closeModal" data-modalid="#reject-view" data-role="button">Cancel</a> </div> </div> </div>Uncaught TypeError: undefined has no properties(anonymous function)b.isFunction.i jquery.min.js:3C.render kendo.mobile.min.js:12b.isFunction.i jquery.min.js:3y.extend._renderItems kendo.mobile.min.js:18y.extend.insertAt kendo.mobile.min.js:18y.extend.append kendo.mobile.min.js:18g.Class.extend.init kendo.mobile.min.js:18$.item kendo.mobile.min.js:18g.Observable.extend.refresh kendo.mobile.min.js:18(anonymous function) kendo.mobile.min.js:18i.extend.trigger kendo.mobile.min.js:12lt.Observable.extend._change kendo.mobile.min.js:15(anonymous function) kendo.mobile.min.js:15i.extend.trigger kendo.mobile.min.js:12ut.extend._process kendo.mobile.min.js:14ut.extend.success kendo.mobile.min.js:14b.isFunction.i jquery.min.js:3n.success kendo.mobile.min.js:14c jquery.min.js:3p.fireWith jquery.min.js:3k jquery.min.js:5r jquery.min.js:5app.noteDetail = function(e){ var view = e.view, noteDetailTemplate = kendo.template($("#detailTemplate").text()); app.noteDS.fetch(function(){ //still causing issue to collapse listview var item = app.noteDS.get(view.params.id); view.scrollerContent.html(noteDetailTemplate(item)); kendo.bind(view.element, item, kendo.mobile.ui); }); };data-bind="source: MenuItems, visible: isVisible, events: {change: SectionSelect,}"var AdminPanelViewModel = kendo.observable( { // data source MenuItems: new kendo.data.DataSource( { data: [ { title: "Alerts", URI: "j", className: "k-widget MainMenuItem_Bogus" }, { title: "Nodes", URI: "j", className: "" }, { title: "Map", URI: "j", className: "" }, ], }), SelectedMenuItem: null, // visible settings isVisible: true, selectable: "single", SectionSelect: function (e) { this.set("SelectedMenuItem",e.sender.dataSource.view()[e.sender.select().index()]) }, } );.km-icon.km-drawer-button.km-notext
{
background: url("img/menu_button.png");
width: 19px;
height: 16px;
display: block;
}<div class="row"> <div class="leftbox"> @Html.LabelFor(m => m.OrganisationId) </div> <div class="rightbox"> @(Html.Kendo().ComboBoxFor(m => m.OrganisationId) .BindTo(Model.OrganisationList) .Placeholder("Select Organisation") .Suggest(true) .Filter(FilterType.Contains) .HtmlAttributes(new { @class = "kendoDropdown wideDropdown", selectWidth = "400" })) </div></div><div class="row"> <div class="leftbox"> @Html.LabelFor(m => m.UserId) </div> <div class="rightbox"> @(Html.Kendo().ComboBoxFor(m => m.UserId) .Placeholder("Select User") .DataSource(source => source.Read(read => read.Action("GetUsers", "Auth").Data("getOrganisationId")).ServerFiltering(true)) .DataTextField("value") .DataValueField("id") .HtmlAttributes(new { @class = "kendoDropdown wideDropdown"}) .Enable(false) .AutoBind(false) .CascadeFrom("OrganisationId") .Events(e => e.Change("enableButton") ) </div>this.elements.grid = $('#grid').kendoGrid({ dataSource: { transport: { read: { url: "/administrator/data/items", dataType: "json", type: 'GET', cache: false } }, schema: { total: "total", data: "data" }, page: 0, pageSize: 15, take: 15, serverPaging: true, serverFiltering: true, type: "aspnetmvc-ajax" }, toolbar: kendo.template($("#search-byName").html()), pageable: { refresh: true, pageSizes: true }, selectable: "row", columns: [ { field: "Id", width: 25, title: "Identity" }, { field: "Name", width: 40, title: "Name", template: "<div class='#: Quality.CSS #'>#: Name #</div><div>#: (Origin.Label != null) ? Origin.Label : '' #</div>" } ], change: function (e) { // get the selected row from the grid var selected = this.select(); // get the data from the selected row var data = this.dataItem(selected); // update the model viewModel.map(data.toJSON()); // perform binding as needed viewModel.subscribe(); // set the mode to editing, since we have // selected an existing item viewModel.set("Editing", true); }, }).data("kendoGrid");