or
<div data-role="view" data-id="notes-view" data-layout="main-layout" data-title="Notes" data-show="app.showListview" id="my-notes-view"> <ul id="note-listview" class="listview" data-role="listview" data-pull-to-refresh="true" data-load-more="true" data-source="app.noteDS" data-template="notesTemplate"></ul> </div>app.noteDetail = function(e){ var view = e.view, noteDetailTemplate = kendo.template($("#noteDetailTemplate").text()); app.noteDS.fetch(function(){ item = app.noteDS.get(view.params.id); //this is actually fetching from ajax... view.scrollerContent.html(noteDetailTemplate(item)); kendo.mobile.init(view.content); }); };Using optionLabel in conjunction with template produces undesirable effect.
In this case both ${ data.State } and ${ data.Representative } come back
as undefined. You should not apply template on optionLabel.
dataTextField: "District",
dataValueField: "District",
filter: "contains",
optionLabel: "----------------",
template: kendo.template("${ data.State } ${ data.District } - ${ data.Representative }"),
bundles.Add(new StyleBundle("~/Content/css/kendo").Include(
"~/Content/kendo/kendo.common-bootstrap.css", "~/Content/kendo/kendo.bootstrap.css", "~/Content/kendo/kendo.dataviz.css", "~/Content/kendo/kendo.dataviz.bootstrap.css"));<link rel="stylesheet" href="/Content/css/kendo?v=1YMtmjX1ETsQVj7kkRXXmXC3IReX27oqRzELH_ZcGPE1">
/* Minification failed. Returning unminified contents.(9,96148): run-time error CSS1030: Expected identifier, found '.'(9,96165): run-time error CSS1031: Expected selector, found ')'(9,96165): run-time error CSS1025: Expected comma or open brace, found ')'(9,96202): run-time error CSS1030: Expected identifier, found '.'(9,96219): run-time error CSS1031: Expected selector, found ')'(9,96219): run-time error CSS1025: Expected comma or open brace, found ')'(9,96363): run-time error CSS1030: Expected identifier, found '.'(9,96371): run-time error CSS1031: Expected selector, found ')'(9,96371): run-time error CSS1025: Expected comma or open brace, found ')'*//** Kendo UI Complete v2013.3.1122 (http://kendoui.com)
...