O'Reilly logo

Learning Kendo UI Web Development by John Adams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the API AutoComplete methods

To access the AutoComplete widget from within JavaScript code, you can access it through the API by calling it this way through jQuery:

var autocomplete = $("autocomplete").data("kendoAutoComplete");

Once you have a variable reference to the AutoComplete widget, you will be able to call the API methods and manipulate it through code as you wish. These are the API methods available on the AutoComplete widget.

Close

The close() method closes the drop-down list on the AutoComplete widget.

// get a reference to the autocomplete widget
var autocomplete = $("autocomplete").data("kendoAutoComplete");

autocomplete.close();

DataItem

The dataItem() method returns the data record at the specified index. This dataItem object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required