This question is locked. New answers and comments are not allowed.
I have submitted this to Kendo which is probably the correct place please Delete this request.
I am new to Icenium (which I think is an excellent product) so
please bear with me if I have missed the obvious. I have implemented the fixed
headers listview using the code below taken from the Kendo Mobile demos. And I
would like to get to the data details would you look and let me know where I am
going wrong please.
Regards,
Joe
Data:
var groupedData = [
{ Jobnum:
"100234Col:1", CompanyName: "Ford Motors", description:
"Collect load From Crewe Ford .", url: "Images/Blue3.png",
JobType: "Collection" },
{ Jobnum: "100235Del:1", CompanyName:
"Rolf GMBH", description: "Deliver Load to Intime Kerpen.",
url: "Images/Green1.png", JobType: "Delivery" },
{ Jobnum: "100241Del:2", CompanyName:
"Asda", description: "Deliver Load to Asda Leicester.",
url: "Images/Green1.png", JobType: "Delivery" },
{ Jobnum: "Fuel-021", CompanyName:
"ABC Services", description: "Fuel Fill Job.", url:
"Images/Yellow.png", JobType: "Fuel Fill" },
];
Template:
<script type="text/x-kendo-template"
id="listviewHeadersTemplate">
<img
class="item-photo" src="${url}" />
<h3
class="item">${Jobnum}</h3>
<h3
class="item-compname">${CompanyName}</h3>
<p
class="item-info">${description}</p>
<a
data-role="button" class="details-link"
href="stretchview">Details</a>
<!--<li><a
href="tabstrip-geolocation">Detail</a></li>-->
</script>
Debug:
function listViewClick(e) {
console.log(e.button); // Kendo mobile Button instance
console.log(e.dataItem.item);
Uncaught TypeError:
Cannot read property 'item' of undefined
}
I am new to Icenium (which I think is an excellent product) so
please bear with me if I have missed the obvious. I have implemented the fixed
headers listview using the code below taken from the Kendo Mobile demos. And I
would like to get to the data details would you look and let me know where I am
going wrong please.
Regards,
Joe
Data:
var groupedData = [
{ Jobnum:
"100234Col:1", CompanyName: "Ford Motors", description:
"Collect load From Crewe Ford .", url: "Images/Blue3.png",
JobType: "Collection" },
{ Jobnum: "100235Del:1", CompanyName:
"Rolf GMBH", description: "Deliver Load to Intime Kerpen.",
url: "Images/Green1.png", JobType: "Delivery" },
{ Jobnum: "100241Del:2", CompanyName:
"Asda", description: "Deliver Load to Asda Leicester.",
url: "Images/Green1.png", JobType: "Delivery" },
{ Jobnum: "Fuel-021", CompanyName:
"ABC Services", description: "Fuel Fill Job.", url:
"Images/Yellow.png", JobType: "Fuel Fill" },
];
Template:
<script type="text/x-kendo-template"
id="listviewHeadersTemplate">
<img
class="item-photo" src="${url}" />
<h3
class="item">${Jobnum}</h3>
<h3
class="item-compname">${CompanyName}</h3>
<p
class="item-info">${description}</p>
<a
data-role="button" class="details-link"
href="stretchview">Details</a>
<!--<li><a
href="tabstrip-geolocation">Detail</a></li>-->
</script>
Debug:
function listViewClick(e) {
console.log(e.button); // Kendo mobile Button instance
console.log(e.dataItem.item);
Uncaught TypeError:
Cannot read property 'item' of undefined
}