View Full Version : Is there a wrap config option for a grid column?

9 Mar 2010, 3:11 PM
I have a grid panel and would like to have one of the column wrap instead of having it truncated with '...' The column has notes in it and the text is rather long.

I think I've done a good job of looking through the API. I've checked GridPanel, ColumnModel, Column, GridView, RowSelectionModel and Field... nothing about wrapping text.

I used FireBug to look at the CSS and found that on the div element that actually has the text of the grid cell has CSS classes of x-grid3-cell-inner and x-grid3-col-notes (the name of the column is notes). The x-grid3-cell-inner class has a style that includes wite-space: nowrap; and if I disable this in FireBug, the column wraps just like I want it to.

So I figure there must be a way to add a CSS style to get it wrap... help :D

Thanks in advanced,
-- Greg