w2grid.paste

Paste tab-delimited text into the grid.
paste(text)
text string, tab-delimited text to paste
Returns undefined.

Description

This method will only work if your grid is excel-like grid, set .selectType to 'cell' and make records editable. The method does not retrieve text from the clipboard but takes the text argument and pasted them to the editable grid records starting with first selected cell.
Regardless .selectType property, this method emits .onPaste event.
If you have grid defined in the following way: Select several records and then call:

User Comments

comments powered by Disqus