View Full Version : How to enable text selection (and copy-paste) in Grid
eugenparaschiv
2 Sep 2008, 2:29 AM
I know there is no Java method to do this (there should be, I'm sure that adding a few methods for the most common functionality will not bloat the class but will add value to it), so I'm asking: how do I enable this from CSS. I read the post over at the EXT JS forum but the solutions there did not work. So what styles do I need to modify (.x-grid3-row, .x-grid3-cell-text, .x-grid3-hd-text, .x-grid3-hd, .x-grid3-row?) to enable this. I guess that the attributes to add are simply:
-moz-user-select: text;
-khtml-user-select: text;
but where.
Anybody knows CSS? I'm sure I can figure this out eventually but still, I don't really want to dig to deep into CSS.
Thanks.
Eugen.
eugenparaschiv
30 Sep 2008, 11:56 PM
Any answer to this? Perhaps a Grid tutorial with these simple functionalities explained? And in the mean time, how do I enable text selection in a grid?
avi.moram
4 Oct 2009, 11:32 PM
Hi eugenparaschiv,
Did you achieve this, this happens in Firefix that too only for EditorGrid, where EditorTreeGrid text selection works fine. I have tried all the forums suggested solutions like moz-user-select and all. But nothing seems to be working.
Thanks,
Avi
This works just fine
.x-grid3-row td,
.x-grid3-summary-row td,
.x-grid3-cell-text,
.x-grid3-hd-text,
.x-grid3-hd,
.x-grid3-row {
-moz-user-select: text !important;
-khtml-user-select: text !important;
}
dhruv88esh
18 Jan 2012, 1:56 AM
Thanks Burn,
Your solution is working great :)
Cole001
30 Jan 2012, 2:15 AM
Hello,
Please note that there was a solution in the forum below
http://forums.silverlight.net/forums/p/17483/58189.aspx
which I tried but it doesnt work with my current senerio. It works fine AutoGenerateColumns propertry set to True but doesnt work with AutoGenerateColumns = false.
Hope i'll get a solution for this.
Thanks and regards
Jacob
dhruv88esh
2 Feb 2012, 9:07 PM
If you are using GXT then try
grid.disableTextSelection(false);
Hope this will work !!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.