Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-2104 in 3.0.3.
  1. #1
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    209
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default (RC2) Copy/paste grid data behaves differently in different browsers

    (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
    Virtual Machine
    No

    Description
    I try to select and copy the data of a simple grid to be able to paste it in NotePad.

    Run mode
    Production mode

    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

    Expected result
    Notepad document containing:
    John<tab>Doe
    Luc<tab>Desmet
    Marino<tab>Falco

    Actual result
    Depends on the browser:
    • In IE8 the result is the best (for a change):
      John Doe
      Luc Desmet
      Marino Falco
      (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 line
      Code:
      grid.setAllowTextSelection(true);
      ]
    • In Chrome the result in NotePad looks like:
      John
      Doe
      Luc
      Desmet
      Marino
      Falco

      (Each column value on a new row - NOK)
    Test case
    Code: here


    Helpful Information



    Video
    • I'll make one if needed

    Debugging already done
    • none
    Possible fix
    • ?

  2. #2
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    209
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default


    Hi Sencha,
    Any reaction on this one?

  3. #3
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    209
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default


    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

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    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.

  5. #5
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Text is now not selectable for all browsers (the default behavior). You can see the change here:

    http://staging.sencha.com:8080/examp...lace:basicgrid

Thread Participants: 2