Hey Guys,
I'm having a problem getting a dropdown list to work properly. Below is the code I'm using:
$(("#category").kendoDropDownList({
dataTextField:"category",
dataValueField:"id",
autoBind:false,
optionLabel:"All",
dataSource:{
transport:{
dataType:'json',
read:'/products/category/json_category/
},
schema:{
data:"results"
}
},
});
This is my json response:
{ "results":[ { "category":"03", "id":"512" }]}
The json request fires when clicking on the dropdown list, but it just sits there with the loading spinner... Any ideas?
If I specify a manual list of items as the datasource, it works fine ><
I'm having a problem getting a dropdown list to work properly. Below is the code I'm using:
$(("#category").kendoDropDownList({
dataTextField:"category",
dataValueField:"id",
autoBind:false,
optionLabel:"All",
dataSource:{
transport:{
dataType:'json',
read:'/products/category/json_category/
},
schema:{
data:"results"
}
},
});
This is my json response:
{ "results":[ { "category":"03", "id":"512" }]}
The json request fires when clicking on the dropdown list, but it just sits there with the loading spinner... Any ideas?
If I specify a manual list of items as the datasource, it works fine ><