onBeforeRemoveRows Event
Arguments
- rowsarray of numbers
A zero-based array of row numbers to be removed.
Description
Fires when the .removeRows() method is called before the rows are actually removed.
Discussion
The onBeforeRemoveRows event is called before rows are removed after the <listObj>.removeRows() has been called. If the method returns false, the action is not performed. For example:
Example
for(var i=0; i<rows.length; i++){ if (rows[i] == undefined) { alert("You cannot delete rows that do not exist!"); return false; } if (rows[i] % 2 == 0) { alert("You cannot delete even rows!"); return false; } }
See Also