PDA

View Full Version : Grid word wrap



eugenparaschiv
1 Sep 2008, 1:45 AM
I'm going to post this here even though it's not really a question and more like a solution; I've been trying to make the cell of a grid word wrap the text inside of it; there are no answers for this inside the GXT forums, but the question seems to have come up on the EXT JS forums quite a lot; the simple answer for the whole grid is this: the style of the grid must be overridden like this:
.x-grid3-cell-inner {
white-space: normal /* possibly ! important here */;
}
This solves the problem.
There probably is a way (there was one in the EXT JS forums) to activate this on a single cell rather than on the same grid, but I didn't do it in my project, so...

googelybear
25 Nov 2008, 1:46 AM
Hi,

thanks for the hint, I'm having the same problem.
Is this hack still necessary or has word wrapping functionality already been integrated in the library?

eugenparaschiv
25 Nov 2008, 2:14 AM
I think the hack is still necessary. I haven't seen this kind of functionality added into the API, but it should be, along with many others for grid.

ram.ghadiyaram@gmail.com
27 Apr 2009, 8:06 AM
Hi
Thanks for the information. This is the common requirement for grid. I think gxt guys has to include in the api.
@eugenparaschiv : Shall we need to override this syle using GridCellRender???