Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sazavi on Nov 02, 2007 11:04
open dhtmlx forum
Copy & Paste Uneditable Columns

When using the copy-and-paste feature, I am able to paste clipboard contents into cells that are NOT editable, which is not a desirable behavior.

How can I prevent clipboard pasting from overwriting non-editable(excell type = ro) cells?
Answer posted on Nov 05, 2007 01:54
you can achieve expected behavior by next small code modification

dhtmlxgrid_selection.js , line  278

        for (var j=startCol; j<endCol; j++) {
            var ed = this.cells3(row, j);
            if (ed.isDisabled()) continue; // this line need to be added