剣道オートコンプリート ウィジェットが ajax リクエストをサービスに送信する前に、URL を変更できません パラメータ マップで URL を変更する前に、最初に既にロードされています。剣道は検索文字列を URL に自動的に追加します。キーを押すと、URL を変更できますが、データは前の要求データでオートコンプリートにバインドされます。URLを変更する適切な場所を取得するように提案できますか。
$('#AddressSearchTerm').kendoAutoComplete({
dataTextField:"Text"
filter: "contains",
minLength: 2,
delay: 700,
dataSource: {
type: "json",
serverFiltering: true,
transport: {
read: "http://services.postcodeanywhere.co.uk/CapturePlus/Interactive/Find/v2.00/json3.ws?SearchTerm=a&LastId=&SearchFor=Everything&Country=GBR&LanguagePreference=EN",
type: "POST",
dataType: "jsonp",
parameterMap: function (options, operation) {
var p = $('#AddressSearchTerm').data("kendoAutoComplete");
var serviceurl1 = "http://services.postcodeanywhere.co.uk/CapturePlus/Interactive/Find/v2.00/json3.ws?SearchTerm=" + options.filter.filters[0].value + "&LastId=&SearchFor=Everything&Country=GBR&LanguagePreference=EN";
p.dataSource.transport.options.read.url = serviceurl1;
}
},
schema:{data:"Items"}
}
});