Kendo ListView not working -
my kendo ui core listview not working reason , can't figure out why:
<div id="events-upcoming"></div> <script type="text/x-kendo-template" id="events-template"> <div class="event"> <p>#: title #</p> </div> </script> <script> $(document).ready(function () { var upcomingevents = new kendo.data.datasource({ transport: { read: { url: "http://localhost/supersavings/services/eventservice.asmx/getfutureeventsbycompanyname", type: "post", contenttype: "application/json; charset=utf-8", datatype: "json", data: { companyname: "admin", currentdate: "1/1/2015" } }, parametermap: function (options) { return kendo.stringify(options); // kendo.stringify serializes json string } }, schema: { data: "d" } }); $("#events-upcoming").kendolistview({ datasource: upcomingevents, template: kendo.template($("#events-template").html()) }); }); </script>
my json data follows:
{ "d":[ { "__type":"ssevent", "eventid":7, "title":"test title", "startdatetime":"/date(1426212900000)/", "enddatetime":"/date(-62135578800000)/", "description":null, "link":null, "usecurrentlocation":false, "useprofilelink":false, "userid":0, "venuename":"", "venueaddress":null, "venuecity":null, "venuestate":null, "venuezip":null, "companydisplayname":null, "companyaddress":null, "companyaddress2":null, "companycity":null, "companystate":null, "companyzip":null } ] }
the datasource works. i've manually bound template. reason listview not want work.
it dumb mistake. in listview datasource should datasource. problem lowercase s. wish there debugger or tool catch kind of casing or misspelling errors visual studio c#.