Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTGWT-3436
in
3.1.3.
-
Sencha Premium Member
Unable to text select a single column in row grid.setAllowTextSelection
When i try to highlight a single piece of data in a grid it always highlights the entire grid from the bottom to the point im trying to select. I remember grid.setAllowTextSelection worked as expected in GXT 2.x . Is there a workaround? My users need to be able to copy and paste a single column from a row in a grid.
Thanks
-
Sencha - Support Team
-
Sencha Premium Member
I am on 3.0.6, i would assume it exists in 3.0.1 also.
-
Sencha - Support Team
Thanks, I'll investigate shortly and get back with more soon.
Brandon
-
Sencha - Support Team
Thanks for the report! I have opened a bug in our bug tracker.
I was able to set allow text selection although the behavior wasn't quite like I expected, so I'm filing a bug for additional review. I found the text could be selected although once the mouse was release the selection vanished.
grid.setAllowTextSelection(true);
Brandon
-
Sencha Premium Member
Hi Brandon, this was not exactly the behavior I experienced, However I recently discovered when using Chrome as the browser the text selection works as expected. When using Firefox 25.1 (Debian OS) when I would try to select in a piece of text in a column of the grid, the selection would not stop at where I started my click+drag, the selection instead would continue all the way to the bottom of the grid. Almost as if it thought my click+drag started at the bottom right corner of the grid, and continued all the way to where ever my mouse pointer was.I do not recall having any trouble with the text staying highlighted though, what browser were you testing in? It appears there may be different behavior depending on the browser, as i stated before it appears to work as expected when using Google Chrome.
-
Sencha - Support Team
Thanks for providing more information.
Brandon
-
Sencha Premium Member
Available Workaround
Colin was able to locate a workaround for me.
by overriding the GridView focus()
Code:
grid.setView(new GridView<Model>() {
@Override
public void focus() {
focusImpl.focus(focusEl);
}
});
-
Sencha - Support Team
Cool. Thanks for sharing.
Brandon
-
Sencha Premium Member
I tried the work around and it did not work. Any updates on the bug above? We are using gxt 3.0.7.