Hi
I set set an url while binding a list. its have no issue if set local view id. But instead of local view id if i set a local .html page. it will stop working in android device. In Phonegap, it giving an error ---
03-31 16:30:24.359: E/Web Console(19853): Uncaught TypeError: Cannot call method 'getAttribute' of undefined at file:///android_asset/www/js/kendo.mobile.min.js:8
------------------------------------------------------------------------------------------------------------------------------------
var MainMenuAction = [
{ name: "Book Your Ticket", description: "", url: "eventtypelist.html", id: 1},
{ name: "Trace Your Ticket", description: "", url: "traceticket.html", id: 2}
];
function SetMainMenu() {
$("#ulMainMenu").kendoMobileListView({
dataSource: kendo.data.DataSource.create({ data: MainMenuAction }),
template: $("#TmpIndex").html()
});
<script type="text/x-kendo-template" id="TmpIndex">
<h4 class="item-title">${name}</h4>
<p class="item-info">${description}</p>
<a data-role="button" data-item-id="#:id#" href="#: url#" class="details-link">Continue</a>
</script>
----------------------------------------------------------------------------------------------------------------------------------------------
List is populate but when i click on button it will not working in my mobile.
How to fix this issue.
Thanks
Jaydeep
I set set an url while binding a list. its have no issue if set local view id. But instead of local view id if i set a local .html page. it will stop working in android device. In Phonegap, it giving an error ---
03-31 16:30:24.359: E/Web Console(19853): Uncaught TypeError: Cannot call method 'getAttribute' of undefined at file:///android_asset/www/js/kendo.mobile.min.js:8
------------------------------------------------------------------------------------------------------------------------------------
var MainMenuAction = [
{ name: "Book Your Ticket", description: "", url: "eventtypelist.html", id: 1},
{ name: "Trace Your Ticket", description: "", url: "traceticket.html", id: 2}
];
function SetMainMenu() {
$("#ulMainMenu").kendoMobileListView({
dataSource: kendo.data.DataSource.create({ data: MainMenuAction }),
template: $("#TmpIndex").html()
});
<script type="text/x-kendo-template" id="TmpIndex">
<h4 class="item-title">${name}</h4>
<p class="item-info">${description}</p>
<a data-role="button" data-item-id="#:id#" href="#: url#" class="details-link">Continue</a>
</script>
----------------------------------------------------------------------------------------------------------------------------------------------
List is populate but when i click on button it will not working in my mobile.
How to fix this issue.
Thanks
Jaydeep