or
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>Repro</
title
>
<
script
src
=
"js/jquery.min.js"
></
script
>
<
script
src
=
"source/js/kendo.all.js"
></
script
>
<
link
href
=
"source/styles/kendo.common.css"
rel
=
"stylesheet"
/>
<
link
href
=
"source/styles/kendo.mobile.all.css"
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
div
data-role
=
"view"
id
=
"tabstrip-listview"
data-init
=
"initList"
data-title
=
"PO List"
data-layout
=
"tabstrip-layout"
>
<
ul
id
=
"po-listview"
/>
</
div
>
<
script
>
var app = new kendo.mobile.Application(document.body);
var ds = new kendo.data.DataSource({
transport: {
read: "Data/POListTest.xml"
},
schema: {
type: "xml",
data: "/ItemInfoList/ItemInfo",
model: {
id: 'PONumber', // *** Commenting out this line fixes the problem ***
fields: { PONumber: "Item/PurchaseOrderHeader/POHdrPONumber/text()" }
}
}
});
function initList() {
$("#po-listview").kendoMobileListView({ dataSource: ds, template: "${PONumber}" });
};
</
script
>
</
body
>
</
html
>
<
div
id
=
"chart"
style
=
"width:200px"
>
</
div
>
function
createChart2() {
$(
"#chart"
).kendoChart({
theme: $(document).data(
"kendoSkin"
) ||
"default"
,
dataSource: {
type:
"odata"
,
transport: {
read: {
url:
"../../Services/WcfDataService1.svc/AllianceSummaryPartnershipMixes"
}
},
sort: {
field:
"Name"
,
dir:
"asc"
}
},
title: {
text:
"Partnership Mix"
},
legend: {
position:
"bottom"
,
margin: 0
},
seriesDefaults: {
type:
"pie"
},
series: [{
field:
"Value"
,
categoryField:
"Name"
}],
tooltip: {
visible:
true
,
format:
"{0:N0}"
},
chartArea: { margin: 0 },
plotArea: { margin: 0 }
}).css({ height:
"200px"
});
}