or
$('#Template').kendoMobileListView({ dataSource: EmployeeVisitsInfo, template: '<table style="width: 100%"><tr><td><p>${a = (typeof data.Name !== "undefined") ?Name : data.LastName</td></table>', click: function(e){ var datasource = $('#Template').data("kendoMobileListView"); var index = datasource .select().index(); var dataItem = ds.dataSource.view()[index]; console.log(index) } });<div id="test" data-role="view" data-model="viewModel"> <div data-bind="source:groups" data-template="groupsTemplate"></div> <button data-role="button" data-bind="click:buttonClick">Add new Button</button></div><script id="groupsTemplate" type="text/x-kendo-template"> <button data-role="button" data-bind="text:caption"></button></script>var viewModel = kendo.observable({ caption: "buttons", groups:[ {name:"button1", caption:"First", error:""}, {name:"button2", caption:"Second", error:""}, {name:"button3", caption:"Third", error:""} ], buttonClick: function(){ this.groups.push({name:"button4", caption:"Forth", error:""}); }});//kendo.bind($('#test'), viewModel);new kendo.mobile.Application();​