I have added this code to try KendoAutoComple, but it only looks for data on the server the first time. What am I missing?
$(
'#autoCompletar'
).kendoAutoComplete({
minLength: 3,
dataTextField:
'Nome'
,
filter:
'contains'
,
dataSource:
new
kendo.data.DataSource({
transport: {
read: {
dataType:
"json"
,
url:
"/Home/PesquisarPessoas"
,
data: {
q:
function
() {
return
$(
'#autoCompletar'
).val(); },
limite: 10
}
}
}
})
});