Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by C. Bernstein on Mar 27, 2009 11:39
open dhtmlx forum
copyBlockToClipboard() not being copied to clipboard with headers

function copyBlockToClipboard(){
pgmGrid.setCSVDelimiter("\t");
pgmGrid.enableCSVHeader(true);
pgmGrid.copyBlockToClipboard();
}

Even when I specify enableCSVHeader(true), a highlighted block is not copied to the clipboard if header cells are highlighted. Why is that?
Answer posted by dhxSupport on Mar 30, 2009 03:36

enableCSVHeader method enable recognizing first row in CSV as header. It means when you will be load grid from csv format, first row in it will be recognize as grid's header. This method doesn't allow to copy header to the clipboard. Actually there is no way to copy grid's header to clipboard using copyBlockToClipboard() method. If such requirement is critical in your case - you can contact sales@dhtmlx.com and request customization of the component.