Hi,
Can anyone help me with this issue. Thanks (in advance).
The textbox "txtSiteNameList" shows up fine. The "txtSiteNameList" displays nothing.
This is a KendoMobileUI App
<!--SITE LIST VIEW -->
<div data-role="view" id="siteListView" data-layout="default" data-title="Sites" data-model="app.sbviewModel">
<h1>Site List View</h1>
<ul id="siteList"
data-bind="source: data"
data-endlessscroll="true"
data-template="sitesTemplate"
data-role="listview"
data-style="inset"></ul>
</div>
<!--SITE LIST TEMPLATE -->
<script id="sitesTemplate" type="text/x-kendo-template">
<input type="text" id="Status" data-bind="value: IsOpen" />
<input type="text" id="txtSiteNameList" data-bind="value: SiteName" />
</script>
/*DATA SOURCE*/
var app = app || {};
app.sbdataSource = new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
url: "http://localhost/SbApp/SbService.svc/GetListSites",
data: {
Accept: "application/json"
},
autoSync: true,
schema: {
model: app.sbModel
}
}
},
});
/*VIEW MODEL*/
app.sbviewModel = kendo.observable({
data: app.sbdataSource,
});
/*MODEL*/
app.sbModel = kendo.data.Model.define({
id: "SiteID",
fields: {
SiteID: { type: "string" },
SiteName: { type: "string" },
SiteSymbol: { type: "string" },
StreetNumber: { type: "string" },
Street: { type: "string" },
City: { type: "string" },
Notes: { type: "string" },
Status: { type: "string" },
Latitude: { type: "string" },
Longitude: { type: "string" }
},
IsOpen: function () {
return "My Return Value";
}
});
Can anyone help me with this issue. Thanks (in advance).
The textbox "txtSiteNameList" shows up fine. The "txtSiteNameList" displays nothing.
This is a KendoMobileUI App
<!--SITE LIST VIEW -->
<div data-role="view" id="siteListView" data-layout="default" data-title="Sites" data-model="app.sbviewModel">
<h1>Site List View</h1>
<ul id="siteList"
data-bind="source: data"
data-endlessscroll="true"
data-template="sitesTemplate"
data-role="listview"
data-style="inset"></ul>
</div>
<!--SITE LIST TEMPLATE -->
<script id="sitesTemplate" type="text/x-kendo-template">
<input type="text" id="Status" data-bind="value: IsOpen" />
<input type="text" id="txtSiteNameList" data-bind="value: SiteName" />
</script>
/*DATA SOURCE*/
var app = app || {};
app.sbdataSource = new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
url: "http://localhost/SbApp/SbService.svc/GetListSites",
data: {
Accept: "application/json"
},
autoSync: true,
schema: {
model: app.sbModel
}
}
},
});
/*VIEW MODEL*/
app.sbviewModel = kendo.observable({
data: app.sbdataSource,
});
/*MODEL*/
app.sbModel = kendo.data.Model.define({
id: "SiteID",
fields: {
SiteID: { type: "string" },
SiteName: { type: "string" },
SiteSymbol: { type: "string" },
StreetNumber: { type: "string" },
Street: { type: "string" },
City: { type: "string" },
Notes: { type: "string" },
Status: { type: "string" },
Latitude: { type: "string" },
Longitude: { type: "string" }
},
IsOpen: function () {
return "My Return Value";
}
});