I am using the autocomplete component to interact with an ASMX webservice ... when I "hard code" the value to send as a parameter, it works fine:
data: {
sProductDesc: "E"
} // data
Data Posted:
{"sProductDesc":"E","take":10,"skip":0,"page":1,"pageSize":10,"filter":{"logic":"and","filters":[{"field":"GROUP_NAME","operator":"contains","value":"e"}]},"group":[]}
but when I try and use the value from the control the parameter is not passed to the webservice:
data: {
sProductDesc: function(){return $("#autoComplete").data("kendoAutoComplete").value()}
} // data
data: {
sProductDesc: "E"
} // data
Data Posted:
{"sProductDesc":"E","take":10,"skip":0,"page":1,"pageSize":10,"filter":{"logic":"and","filters":[{"field":"GROUP_NAME","operator":"contains","value":"e"}]},"group":[]}
but when I try and use the value from the control the parameter is not passed to the webservice:
data: {
sProductDesc: function(){return $("#autoComplete").data("kendoAutoComplete").value()}
} // data
Data Posted:
{"take":10,"skip":0,"page":1,"pageSize":10,"filter":{"logic":"and","filters":[{"field":"GROUP_NAME","operator":"contains","value":"E"}]},"group":[]}
Any ideas?
Thanks!
Doug
{"take":10,"skip":0,"page":1,"pageSize":10,"filter":{"logic":"and","filters":[{"field":"GROUP_NAME","operator":"contains","value":"E"}]},"group":[]}
Any ideas?
Thanks!
Doug