3.0.0

Copy & paste of multiple rows/cells - AW 2.5.3

I'm sure this has been asked before, but I can't seem to find the appropriate topic.

I would like to select one or more rows/cells, copy it, and then go to a text editor and press Ctrl-V. Even better would be to put it in an Excel spreadsheet as CSV data, but I'll talk the text editor.

This works slighty with 2.5.3, but when I paste, I just get one long ugly line of data. A minimum of formatting (tabs, newlines, etc) would be nice.

Is this at all possible with the current version? Do I have to cook something up in javascript to make it work?

Thanks!
Brian Kreulen
January 7,
bump
Brian Kreulen
January 9,
Alex had posted this code on the board a while back.

copybutton.onControlClicked = function(event){
var txt = T7G1.getSelectedText();
window.clipboardData.setData("Text", txt);
alert('Data copied to clipboard!');
}

Erik
January 9,
Copy & paste to text editor or Excel should work in AW 2.5.3 - it is activated by default and does not require any additional code. The grid control inserts tab between the cells and new line character between the rows, so you can paste it into Excel and it also appears as table in the editor.

Brian, did you try to paste into Excel or another text editor?
Alex (ActiveWidgets)
January 9,
Alex (ActiveWidgets)
January 9,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.