i want bind the data to listview through pagemethods, but it is not binding.
1. can i use pagementhod for lisview databinding ?
Please check the code and give me the suggestions......
<div data-role="view" id="listview-templates" data-title="ListView" data-init="mobileListViewTemplatesInit">
<ul id="custom-listview">
</ul>
</div>
function mobileListViewTemplatesInit() {
PageMethods.GetEventTrainees(function (response) {
groupedData = response.split("#");
});
$("#custom-listview").kendoMobileListView({
dataSource: kendo.data.DataSource.create({ data: groupedData }),
template: $("#customListViewTemplate").html()
});
}
1. can i use pagementhod for lisview databinding ?
Please check the code and give me the suggestions......
<div data-role="view" id="listview-templates" data-title="ListView" data-init="mobileListViewTemplatesInit">
<ul id="custom-listview">
</ul>
</div>
function mobileListViewTemplatesInit() {
PageMethods.GetEventTrainees(function (response) {
groupedData = response.split("#");
});
$("#custom-listview").kendoMobileListView({
dataSource: kendo.data.DataSource.create({ data: groupedData }),
template: $("#customListViewTemplate").html()
});
}