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
- Go to HTML view and add the following code:
JavaScript Copy 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!"); }
- Invoke DeleteRow() function by adding the following code:
<input id="Button1" type="button" value="Delete Row" onclick="DeleteRow()" />
Tasks
How-to: Add item in unbound WebCombo from client side
How-to: Set selected row in unbound WebCombo
How-to: Modify the first cell of the first row in unbound WebCombo
How-to: Create unbound WebCombo using PopupateUnboundData method
How-to: Create multiple columns unbound WebCombo using PopulateUnboundData method
Concepts
Unbound Mode