Hi,
I have following code:
//Autocomplete Gemarkungssuche
$("#al_gemarkung").kendoAutoComplete({
minLength: 1,
dataTextField: "bez",
select: onSelectAlkisplace,
enable: true,
dataSource: new kendo.data.DataSource({
transport: {
read: "mod_alkis/gem_search.php",
//parameter
parameterMap: function(options, operation) {
return {
placename: options.filter.filters[0].value
}
}
},
schema: {
data: "data"
},
//Filter aufServer nicht Client
serverFiltering: true
})
});
if I enter a letter everything works fine, but if I go back to the beginning of my input with the backspace key or delete everything in the input field I get the following error in the console:
TypeError: options.filter.filters[0] is undefined
How can I prevent this?
Thanks Sven