• close ()
    Closes the drop-down list.

    Example

    // get a reference to the autocomplete widget
    var autocomplete = $("autocomplete").data("kendoAutoComplete");
    
    autocomplete.close();
  • dataItem (index) : Object
    Returns the raw data record at the specified index

    Example

    var autocomplete = $("#autocomplete").data("kendoAutoComplete");
    
    // get the dataItem corresponding to the passed index.
    var dataItem = autocomplete.dataItem(1);

    Parameters

    index: Number
    The zero-based index of the data record
    Returns
    Object The raw data record. Returns undefined if no data.
  • enable (enable)
    Enable/Disable the autocomplete widget.

    Example

    // get a reference to the autocomplete widget
    var autocomplete = $("autocomplete").data("kendoAutoComplete");
    
    // disables the autocomplete
    autocomplete.enable(false);
    
    // enables the autocomplete
    autocomplete.enable(true);

    Parameters

    enable: Boolean
    The argument, which defines whether to enable/disable the autocomplete.
  • refresh ()
    Re-render the items in drop-down list.

    Example

    // get a referenence to the Kendo UI AutoComplete
    var autocomplete = $("autocomplete").data("kendoAutoComplete");
    // re-render the items in drop-down list.
    autocomplete.refresh();
  • search (word)
    Filters dataSource using the provided parameter and rebinds drop-down list.

    Example

    // get a reference to the autocomplete widget
    var autocomplete = $("autocomplete").data("kendoAutoComplete");
    
    // Searches for item which has "Inception" in the name.
    autocomplete.search("Inception");

    Parameters

    word: string
    The filter value.
  • select (li)
    Selects drop-down list item and sets the text of the autocomplete.

    Example

    // get a reference to the autocomplete widget
    var autocomplete = $("autocomplete").data("kendoAutoComplete");
    
    // selects by jQuery object
    autocomplete.select(autocomplete.ul.children().eq(0));

    Parameters

    li: jQuery Object
    The LI element.
  • suggest (value)
    Forces a suggestion onto the text of the AutoComplete.

    Example

    // note that this suggest is not the same as the configuration method
    // suggest which enables/disables auto suggesting for the AutoComplete
    //
    // get a referenence to the Kendo UI AutoComplete
    var autoComplete = $("#autoComplete").data("kendoAutoComplete");
    
    // force a suggestion to the item with the name "Inception"
    autoComplete.suggest("Inception");

    Parameters

    value: string
    Characters to force a suggestion.
  • value (value) : String
    Gets/Sets the value of the autocomplete.

    Example

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

    Parameters

    value: String
    The value to set.
    Returns
    String The value of the autocomplete.