hi all, I don't know what am I doing wrong here, its a pretty straight forward things. autocomplete is not showing anything.
moviesuggestions =
new
kendo.data.DataSource({
autoSync:
true
,
transport: {
read:
function
(options) {
theMovieDb.search.getMovie({
"query"
: $(
"#seriesname"
).val(), search_type:
"ngram"
},
function
(data) {
//success
options.success($.parseJSON(data).results);
},
function
(data) {
//error
options.error($.parseJSON(data).results);
});
}
}
});
autocomplete = $(
"#seriesname"
).kendoAutoComplete({
datasource: moviesuggestions,
dataTextField:
"title"
,
suggest:
true
});