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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -