17 Apr 2012 1:14 AM #1
(RC2) Copy/paste grid data behaves differently in different browsers
Version of Ext GWT
3.0 Release Candidate 2
Browser versions and OS
- Internet Explorer 8, version 8.0.7601.17514
- FireFox 11
- Google Chrome, version 18.0.1025.162 m
All running on Windows 7 Professional SP 1
I try to select and copy the data of a simple grid to be able to paste it in NotePad.
Steps to reproduce the problem
Run this simple grid example (we run it in production mode): (sample code here)
Try to select all cells by
- pressing the left mouse button in the lower right corner of the lower right cell
- dragging the mouse to the upper left corner of the upper left cell
- release the mouse button
- press Ctrl+C to copy the selected cells (all)
- Open a new document in Notepad
- press Ctrl+V
Notepad document containing:
Depends on the browser:
- In IE8 the result is the best (for a change):
(No tabs between the column values, but simple spaces. Bug or not?)
- In FF11 I simply can't select the column values! NOK
[ (although we added the lineCode:
- In Chrome the result in NotePad looks like:
(Each column value on a new row - NOK)
- I'll make one if needed
Debugging already done
22 Apr 2012 11:13 PM #2
Any reaction on this one?
10 May 2012 11:58 PM #3
I see that yesterday several bug reports got addressed and did get a reaction.
Is this one forgotten somehow?
It's still a problem in 3.0.0
14 May 2012 9:44 AM #4
Copy and paste from a grid is not a scenario we support. We have currently left the result of such an attempt undefined. As a result, the behavior you are describing is not exactly a bug.
That having been said, the difference in behaviour is something we'd like to look into. Being able to copy in one browser and not another is not definitely not the intended effect. The correct fix may be to make text unselectable in all browsers. We'll look into this further.
For the moment, if you need your data in a format amenable to copy and paste, consider looking into one of the GWT-compatible CSV libraries. These should be significantly easy to copy and won't introduce space/tab ambiguities.
7 Nov 2012 10:55 AM #5