Intersoft WebCombo Documentation
How-to: Filter the data in WebCombo using SetAdditionalFilter method
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Filter the data in WebCombo using SetAdditionalFilter method

Glossary Item Box

WebCombo provides a client side method to filter the data in Client-side event.

In this topic, you will learn how to use SetAdditionalFilter method.

To filter the data in WebCombo using SetAdditionalFilter method

  1. Bind WebCombo to AccessDataSource.
  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 Button1_onclick()
    {
       var WebCombo1 = ISGetObject("WebCombo1");
       var customer = "ANTON";
       WebCombo1.SetAdditionalFilters("[CustomerID] = '" + customer + "'");
    }                        

  4. Run the project.

See Also