Categories | Question details Back To List | ||||||||||||||||||||||||||||||||
gridToClipboard() sending rowId to clipboard When I use gridToClipboard(), the rowIds of each row show up (in excel) as the first column values although they are not displayed on the grid. How can I make it so that the rowId values do not show up in the clipboard and look exactly like the grid? Also, since the values are messed up the headers do not match the values when the clipboard data is pasted. Answer posted by dhxSupport on Apr 07, 2009 02:18 >>When I use gridToClipboard(), the rowIds of each row show up (in excel) as the first column values although they are not displayed on the grid. How can I make it so that the rowId values do not show up in the clipboard and look exactly like the grid? gridToClipboard() copy to clipboard all grid values including hidden columns. If you have hidden column in your grid you can prevent coping them to the clipboard using method setSerializableColumns(list) where list - list of true/false values separated by comma, if list empty then all fields will be serialized. >>Also, since the values are messed up the headers do not match the values when the clipboard data is pasted. gridToClipboard() copy to clipboard all grid rows in such order like them present in the grid. This method can't copy to clipboard grid's header Answer posted by C. Bernstein on Apr 07, 2009 06:34 I have the following xml: I call grid.load(filename.xml, xml) which puts the xml into the grid. When Answer posted by dhxSupport on Apr 07, 2009 06:55 Do you mean this column (please see attachment)? If yes - this is just row numeration in the Excell. If no - please provide us any kind of sample where we can reproduce this issue Attachments (1)
Answer posted by C. Bernstein on Apr 07, 2009 07:23 No, the first column. I am running searchChava.html Attachments (3)
Answer posted by C. Bernstein on Apr 07, 2009 07:27 Answer posted by C. Bernstein on Apr 07, 2009 07:27 Attachments (1)
Answer posted by dhxSupport on Apr 07, 2009 08:25 Add following code to the grid init: mygrid.enableCSVAutoID(true); After that gridToClipboard() method will not copy grid's ids to the clipboard. |