WebCombo provides a Client-side method to set selected row in bound WebCombo.
In this topic, you will learn how to use SetText and LoadValue methods.
To set selected row in bound WebCombo
- 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 Button1_onclick() { var WebCombo1 = ISGetObject("WebCombo1"); WebCombo1.SetText("Maria Anders"); WebCombo1.LoadValue(); }
- Run the project.