Intersoft WebCombo Documentation
How-to: Hide and show dropdown combo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Hide and show dropdown combo

Glossary Item Box

WebCombo provide a method in client side to hide and show dropdown combo.

In this topic, you will learn how to hide and show dropdown

To show dropdown combo

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

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

  3. Run the project.

To hide dropdown combo

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

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

  3. Run the project.

See Also