C1ComboBox includes several client-side events that allow you to manipulate the combobox items in the C1ComboBox control when an action such as selecting the item, opening the drop-down list, or closing the drop-down list occurs.
Each of the client-side events requires two parameters: the ID that identifies the sender C1ComboBox.
You can use the sever-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 "CloseList" to respond to the closed drop-down list, you would set the OnClientClose property to "CloseList".
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 or the name you declare for each JavaScript function are defined on the client side.
Client Side Event table
Event Server-Side Property Name | Event Name | Description |
---|---|---|
OnClientChanged | Changed | A function called when the select item is changed |
OnClientClose | Close | A function called when the drop-down list is closed. |
OnClientOpen | Open | A function called when the drop-down list is opened. |
OnClientSearch | Search | A function called before searching the list. |
OnClientSelect | Select | A function called when any item in the list is selected. |