SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onEditRowPasted  event

When the grid is being edited or startEditWhenPaste of editOptions is true and row updating is possible, it will be fired after pasting the data which is from the clipboard into the editing row. 

Before firing this event, onEditCellUpdated event will be fired in each cell in which has pasted the value. And, onPasted event will be fired following this event. 

function onEditRowPasted (grid: GridBase, row: GridRow, fields: Array[Integer], newValues: Array, oldValues: Array);
Returns
Void
Parameters
grid - GridBase.
row - GridRow.
fields - Array[Integer].
newValues - Array.
oldValues - Array.
Code -1
    grid.onEditRowPasted = function (grid, row, fields, newValues, oldValues) {
        for (var i = 0; i < newValues.length; i++) {
            console.log(newValues[i]);
        }
    };
See Also
onPasted
onEditCellUpdated
editOptions
Cell Editing Overview
EditOptions
Examples
Clipboard Paste
Clipboard Copy
Cell Editing
Edit Events
Edit Keys