I am using Web Service for retrieving values from the database.I have Written Fallowing code for binding List values from web service to mobile List View.but values are not displaying in List View.Is there any problem for binding data from the DB.
<div data-role="view" id="flat" data-init="mobileListViewDataBindInitFlat" data-title="ListView"
data-layout="databinding">
<ul id="flat-listview">
</ul>
</div>
<script type="text/javascript">
$(function () {
var dataS = new kendo.data.DataSource({
transport: {
read: {
type: 'POST',
url: 'mobileAppWebService.asmx/EmployeeNames',
dataType: 'json',
data: '{}',
contentType: 'application/json; charset=utf-8'
},
schema: {
data: 'd'
}
}
});
$("#flat-listview").kendoMobileListView({
dataSource: dataS,
template: "${ename}"
});
});
</script>
<script>
var app = new kendo.mobile.Application(document.body);
</script>
try like this