Here is calling code:
and tipaiindeksai.read(); returns undefined.
The call looks like this:
http://localhost:11336/Mobile/GetTipaiIrIndeksai?d=jQuery1710758081869687885_1337762101342&_=1337762101615
And it returns:
$(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();and tipaiindeksai.read(); returns undefined.
The call looks like this:
http://localhost:11336/Mobile/GetTipaiIrIndeksai?d=jQuery1710758081869687885_1337762101342&_=1337762101615
And it returns:
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}])So it returns something, but it seems that DataSource can't parse it correctly as its result is undefined.
Please help to make it work :)
Please help to make it work :)