<h1>
    AutoComplete Async Loading
</h1>

<p>
    The AutoComplete below populates the drop-down list
    asynchronously using the <b>itemsSourceFunction</b>
    property.
</p>
<p>
    Try typing "ch" or "chi" and waiting a second to see
    the drop-down.
</p>

<label for="theAutoComplete">AutoComplete:</label>
@Html.C1().AutoComplete().Id("theAutoComplete").Placeholder("Product Name").DisplayMemberPath("ProductName")
<p>
    Selected product: <b id="msg">None</b>
</p>
<p>
    This feature is especially useful when the number
    of items is large (thousands or millions of items)
    and the data is stored in a server database capable
    of fast searches.
</p>