Hey there,
I was wondering if you can explain to me why I get the following error:
"d.name is undefined"
JS:
$(function () {
$("#id_purchase_place").kendoAutoComplete({
minLength:3,
dataTextField:'name',
dataSource:{
serverPaging:true,
pageSize:20,
contentType:'application/json; charset=utf-8',
type:'GET',
dataType:'json',
transport:{
read:'/purchases/ajaxpurchase_place/'
}
}
})
});
JSON RESPONSE
I was wondering if you can explain to me why I get the following error:
"d.name is undefined"
JS:
$(function () {
$("#id_purchase_place").kendoAutoComplete({
minLength:3,
dataTextField:'name',
dataSource:{
serverPaging:true,
pageSize:20,
contentType:'application/json; charset=utf-8',
type:'GET',
dataType:'json',
transport:{
read:'/purchases/ajaxpurchase_place/'
}
}
})
});
JSON RESPONSE
[{"name": "Woolies"}, {"name": "Bunnings"}]