or
On one view I am calling another view and passing a variable on "click" via a dynamic ListView. The datasource is being populated onShow.
It is working as expected on first usage but if 1) go BACK and choose another option OR 2) complete the first entry and try to create a new one - it blows trying to read the e.dataItem.{somevar}. Ideas why?
app.myService = { onShow: function (e) { .... $("#lvLevel2Options").kendoMobileListView({ dataSource: kendo.data.DataSource.create({data: ds }), template: $("#templateCategoryLevel2").html(), click: app.myService.categoryClicked }); } categoryClicked: function (e) { //It blows HERE but only on second pass var id= e.dataItem.id; .... }Other info: I checked the source of the List and see the data-uid values are changing each time i view the page as I would expect since the datasource is being refreshed onShow (it needs to be because it is dynamic filtered data).