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