At the first rendering of a page I would like to specify and process the selection of a default autocomplete value. I thought this code might work, it doesn't:
$(document).ready(function () { var ac = $("#autoComplete").data("kendoAutoComplete"); var target = "170035"; ac.search(target) .then(ac.select(target)) .then(ac.trigger("change")) ;})AutoComplete search() does not return a promise. A promise would be needed for the .then() chaining I want to do. For comparison, DataSource read() does return a promise and can be part of a chain.
Q: Can you suggest a different approach for search and select ?
Thanks, Richard
