or
<div id='bottomDiv'> <div id="tabstrip"> <ul> <li>Grid</li> </ul> <div> <div id="ticketListDiv"> </div> </div> </div> <div id='mapDiv'></div></div>$("#ticketListDiv").kendoGrid({ dataSource : { // JSONP is required for cross-domain AJAX dataType: "jsonp", transport: { read: baseURL + "Data;jsessionid="+ jsessionId + "?browserid=" + browserId + "&type=2&tool=KendoUIResourceList" }, schema: { model: { fields: { firstName: { type: "string" }, lastName: { type: "string" } } } }, pageSize: 10, serverPaging: true, serverFiltering: true, serverSorting: true }, toolbar: kendo.template($("#template").html()), height: 250, filterable: true, sortable: true, pageable: true, groupable: true, selectable: "single row", filterable: { messages: { info: "Ticket Filter", // sets the text on top of the filter menu filter: "ausführen", // sets the text for the "Filter" button clear: "zurücksetzen", // sets the text for the "Clear" button }, operators: { //filter menu for "string" type columns string: { eq: "entspricht", neq: "entspricht nicht", startswith: "startet mit", contains: "enthält", endswith: "endet mit" } } }, dataBound: resizeGrid, columns : [{ field : "firstName", title : "Vorname", width : 50 }, { field : "lastName", title : "Nachname", width : 50 }] });$(document).ready(function () { var tipaiindeksai = new kendo.data.DataSource({ transport: { read: { url: "http://localhost:11336/Mobile/GetTipaiIrIndeksai", dataType: "jsonp", jsonp: "d" //cache: false, //jsonpCallback: "callback" } }, schema: { data: "" } }); var ats = tipaiindeksai.read();HTTP/1.1 200 OKServer: ASP.NET Development Server/10.0.0.0Date: Wed, 23 May 2012 08:35:01 GMTX-AspNet-Version: 4.0.30319X-AspNetMvc-Version: 4.0Cache-Control: privateContent-Type: application/json; charset=utf-8Content-Length: 939Connection: ClosejQuery1710758081869687885_1337762101342([{"ID":0,"pav":"asd","indeksas":141.8},{"ID":10,"pav":"asdasd","indeksas":101.7}])
Code attached.
