AutoComplete for ASP.NET Web Forms includes several client-side events that allow you to manipulate the C1AutoComplete controls when an action such as searching in the search box occurs.
You can use the server-side properties, listed in the Client Side Event table, to specify the name of the JavaScript function that will respond to a particular client-side event. For example, to assign a JavaScript function called "Search" to respond when the AutoComplete window is searched, you would set the OnClientSearch property to "search".
The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events of the name you declare for each JavaScript function are defined on the client side.
Event Server-Side Property Name | Event Name | Description |
---|---|---|
OnClientChange | change | Occurs when the control is changed. |
OnClientClose | close | Occurs when the control is closed. |
OnClientCreate | create | Occurs when the control is created. |
OnClientFocus | focus | Occurs when the control gains focus. |
OnClientOpen | open | Occurs when the control is opened. |
OnClientSearch | search | Occurs when a search is performed. |
OnClientSelect | select | Occurs when the control is selected. |