javascript - Kendo UI DropDownList dataSource from external url not working (SOLVED) -
original code http://demos.kendoui.com/web/dropdownlist/template.html
json file original, in different location.
project: http://jsfiddle.net/rbogdanowicz/rrdq4/2/
what wrong?
the difference in between responses, 1 wrappeped in callback keyword :
callback([{"customerid":"alfki","contactname":"maria anders","companyname":"alfreds futterkiste"},{"customerid":"anatr","contactname":"ana trujillo","companyname":"ana trujillo emparedados y helados"}]);
kendo 1 not. solution set jsonpcallback parametr (fiddle : http://jsfiddle.net/vojtiik/2jtst/):
transport: { read: { datatype: "jsonp", jsonpcallback: "callback", url: "http://www1.com.br/customers", } }
Comments
Post a Comment