Intersoft WebCombo Documentation
How-to: Set initial value of multiple selection WebCombo from client side
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Set initial value of multiple selection WebCombo from client side

Glossary Item Box

In multiple selection mode, you can set initial value from client side.

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

To set initial value of multiple selection WebCombo from Client-side

  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.SetMultipleValues("Maria Anders", "ALFKI");
       WebCombo1.RefreshTextByValueItems();
    }                       

  3. Run the project.

See Also