-
2 Sep 2008 2:29 AM #1
How to enable text selection (and copy-paste) in Grid
How to enable text selection (and copy-paste) in Grid
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.
-
30 Sep 2008 11:56 PM #2
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?
-
4 Oct 2009 11:32 PM #3
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
-
18 Mar 2010 5:05 AM #4
This works just fine
Code:.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; }
-
18 Jan 2012 1:56 AM #5
Copy text from grid
Copy text from grid
Thanks Burn,
Your solution is working great
-
30 Jan 2012 2:15 AM #6
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
-
2 Feb 2012 9:07 PM #7
If you are using GXT then try
Hope this will work !!Code:grid.disableTextSelection(false);


Reply With Quote