or
<ul id="Appointment_listview"></ul><script type="text/javascript"> var listData = new kendo.data.DataSource({ transport: { read: { url: "Service.asmx/GetAppointment", dataType: "jsonp", data: { //additional parameters sent to the remote service q: "javascript" } } }, schema: { // describe the result format data: "results" // the data which the data source will be bound to is in the "results" field } }); function mobileListViewDataBindInitFlat() { $("#Appointment_listview").kendoMobileListView({ template: "<a href='details.aspx?id=${data.id}'>${data.subject}</a>", dataSource: listData }); }</script>Imports System.Web.ServicesImports System.Web.Services.ProtocolsImports System.ComponentModel' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.' <System.Web.Script.Services.ScriptService()> _<System.Web.Services.WebService(Namespace:="http://star1.com.au/")> _<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<ToolboxItem(False)> _Public Class Service Inherits System.Web.Services.WebService <WebMethod()> _ Public Shared Function GetAppointment() As IEnumerable(Of AppointmentSummary) Dim dt As DataTable = DataManager.Appointments_Get(SessionManager.AppID, SessionManager.UserID, Date.Now) Dim var As New List(Of AppointmentSummary) For Each dr As DataRow In dt.Rows Dim apt As New AppointmentSummary With apt .id = dr("id").ToString .subject = dr("Subject").ToString & " (" & CDate(dr("Start")).ToShortDateString & " " & CDate(dr("Start")).ToShortTimeString & ")" End With var.Add(apt) Next Return var.ToList End FunctionEnd Class<script type="text/javascript"> var app = new kendo.mobile.Application(document.body);</script>GET http://localhost:56634/main/Service.asmx/GetAppointment?callback=jQuery17106404353028628975_1331880114840&q=javascript&_=1331880115408 500 (Internal Server Error)$("#grid").kendoGrid({ columns: [{ field: "Name", title: "Name", template: '<input type=\'button\' value=#=Name# onclick =\'Index.Data.downloadFile(\"#=id#\",\"#=Name#\")\'/>' }, { field: "ChangedDate", title: "geaendert", format: "{0:dd/MMMM/yyyy}"}], schema: { model: { id: "id", fields: { Name: { editable: false, type: "string" }, ChangedDate: { editable: false, type: "string"} } } } });