Intersoft WebCombo Documentation
How-to: Set focus on WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Set focus on WebCombo

Glossary Item Box

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

  1. Drag a WebCombo instance into the WebForm.
  2. Drag a HTML button and leave the Id as it is, which is Button1.
  3. Double click the HTML button and add the following code in the defined client side event handler:

    JavaScript Copy ImageCopy Code
    function CustomFunction()
    {
       var combo = ISGetObject("WebCombo1");
       combo.SetFocus();
    }                      

  4. Run the project.

See Also