You can set focus on WebCombo via client side using SetFocus method.
In this topic, you will learn how to implement the method.
To set focus on WebCombo using client side API
- Drag a WebCombo instance into the WebForm.
- Drag a HTML button and leave the Id as it is, which is Button1.
- Double click the HTML button and add the following code in the defined client side event handler:
JavaScript Copy Code function CustomFunction() { var combo = ISGetObject("WebCombo1"); combo.SetFocus(); }
- Run the project.