mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

disable paste for single column #1196

Open aniketng765 opened 5 years ago

aniketng765 commented 5 years ago

how to disable paste for single column? selectable : false worked when i tried to paste for single column. but when I copy data from two columns and try to paste on column besides the one having selectable : false, it allows me to paste.

AllowPaste option suggested by 6pac in Copy/paste doesn't work #575 didnt worked for column configuration.

6pac commented 5 years ago

I have added a new column option called 'denyPaste'.

This is at the new master https://github.com/6pac has a fully developed plugin for this based on @celebio's, with additional bug fixes.

see http://6pac.github.io/SlickGrid/examples/example-excel-compatible-spreadsheet.html

(note that this is just in the latest commit, it's not in a release yet)

sreenithalbhat commented 5 years ago

I have added a new column option called 'denyPaste'.

How do we implement in our code.Where do we specify this?