This question is locked. New answers and comments are not allowed.
Not sure if this forum is the right place for my question, but maybe another Icenium user already had the same challenge:
I use kendoMobileListView in a couple of places in my app. For some reason dataItem returns undefined in one particular place:
function showAllBikesInBikeSelection() {
$("#selBikes").kendoMobileListView({
dataSource: kendo.data.DataSource.create({data: model.bikersArray}),
template: $("#choosebikeTemplate").html(),
click: function(bItem) {
model.current = bItem.dataItem; // UNDEFINED ?
location.href = "#tabstrip-map";
}
});
}
I cannot figure out the difference to the other ListViews where dataItem uses to be the item the user clicked on.
Any help is appreciated.
Kind regards,
Gerhard
I use kendoMobileListView in a couple of places in my app. For some reason dataItem returns undefined in one particular place:
function showAllBikesInBikeSelection() {
$("#selBikes").kendoMobileListView({
dataSource: kendo.data.DataSource.create({data: model.bikersArray}),
template: $("#choosebikeTemplate").html(),
click: function(bItem) {
model.current = bItem.dataItem; // UNDEFINED ?
location.href = "#tabstrip-map";
}
});
}
I cannot figure out the difference to the other ListViews where dataItem uses to be the item the user clicked on.
Any help is appreciated.
Kind regards,
Gerhard