One of WebCombo's most powerful features is the ability to accommodate a broad range of scenarios through its extendable capability using client-side events. In this section, we will see how we can attach a client-side event handler to the event using the Client-side Event Editor.
Assuming that you already have the combo bound to a data source and there is data to be displayed, the steps needed are as following:
- Switch to design view of the page and right-click on the combo, then select Properties.
- In the Properties tab, expand LayoutSettings - ClientSideEvents nodes.
- Find the OnAfterItemSelected event and click the drop down arrow. In the drop down list you will see an item Add New Handler - WebCombo1_OnAfterItemSelected_1(controlId) and/or other event handler names if the page has already contained other client-side event handlers.
- Click on the Add New Handler... item. The page will then automatically switch to HTML view and the event handler will be automatically added.
Related Sections
Define the styles
Cache
Performance Tuning
Layout Manager
References
ClientEvents Class