SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onPasted  event

It will be fired after running pasting in one or more data cells. 

If it is pasted in editing row, onEditRowPasted will be fired first, and then this event will be fired by setting both updatedCount and appendedCount as 0

And, onPaste event will be fired just before committing pasting. 

function onPasted (row: GridRow, updateCount: Integer, appendedCount: Integer);
Returns
Void
Parameters
row - GridRow.
updateCount - Integer.
appendedCount - Integer.
Code -1
    grid.onRowPasted = function (grid, row, updatedCount, appendedCount) {
        console.log(row.index() + 'Row from ' + updatedCount + 'Update Rows, ' + appendedCount + 'Append Rows.';
    };
See Also
onEditRowPasted
onPaste
onCopy
Examples
Clipboard Paste
Clipboard Copy
Cell Editing