Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David Charron on Nov 13, 2008 13:15
open dhtmlx forum
gridFromClipboard and ro column

Hi,

I don't want the ro column to be edited when using gridFromClipboard().

I've found a post from 2007 in the database but I've look into dhtmlxgrid_selection.js and as far as I understande the file is now fixed.

http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=1143&ssr=yes&s=paste%20uneditable

I'm using dhtmlxGrid v.2.0 Professional edition build 81009

Can you help?
gridNumeroSerie.setColTypes("ro,ed,ro,ed,ro");
gridNumeroSerie.clearAll();//clears grid
gridNumeroSerie.gridFromClipboard();//set grid content from clipboard (uses active delimiter)
Answer posted by Support on Nov 14, 2008 02:05
>>as I understande the file is now fixed.
The post related to the block-selection functionality, which really ignores ro cell in latest version of grid. 
The gridFromClipboard loads grid content from clipboard, it doesn't execute any checks on column type. 
You may call custom code, which will run after gridFromClipboard and set "ro" cells to empty or any other necessary value.