This is a migrated thread and some comments may be shown as answers.

Mobile Listview control custom template

0 Answers 71 Views
ScrollView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Srinivasulu
Top achievements
Rank 1
Srinivasulu asked on 14 May 2012, 02:13 PM
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()
            });
        }

No answers yet. Maybe you can help?

Tags
ScrollView (Mobile)
Asked by
Srinivasulu
Top achievements
Rank 1
Share this question
or