Intersoft WebCombo Documentation
How-to: Delete a row in unbound WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Unbound Mode How-to Topics > How-to: Delete a row in unbound WebCombo

Glossary Item Box

WebCombo provides a method to delete a row in unbound mode.

In this topic, you will learn how to implement the delete method.

To delete a row in unbound WebCombo

  1. Go to HTML view and add the following code:

    JavaScript Copy ImageCopy Code
    function DeleteRow()
    {
       var WebCombo1 = ISGetObject("WebCombo1");
       var rows = WebCombo1.GetRows();
       rows.Remove(rows[0], true); //remove row 0 from Rows collection, 2nd parameter must always be set to true
       WebCombo1.UpdateUI();
       alert("Row 0 removed!");
    }                            
    

  2. Invoke DeleteRow() function by adding the following code:

    <input id="Button1" type="button" value="Delete Row" onclick="DeleteRow()" />

See Also