Login Register

Dojo grid text wrapping not working correctly

Hello, it's me again :) . I have a new problem now.

When displaying a dojo grid, the text in the cells is wrapping prematurely... for example, there is room for another word to be displayed, but for some reason the text wraps as if there is a large margin on the right side of the cell that prevents the text from filling that space. The result is grid rows that are much taller than they need to be.

Here's an example (look at the upper left cell):

http://radloff.homeip.net:8080/files/grid_text_wrapping.JPG
(This is a display of a Domino view rendered in a Dojox grid)

...How do I gain control of the right "text wrapping margin" within a grid cell? Any suggestions?

Figured out this one too

...I figured out this one too. I modified my .xsl to add

, width: 'auto'

after each column name. Problem solved :)

Can u be more elaborate

I am facing a similar issue ... the data in the grid wraps and overflows to next line ... although it appears that the grid column has enough space to accomadate the data. I am using dojoroot\dojox\grid\_grid\Grid.css as the css to style grid and overidding the specific style class of this css to get the display required for the project.

Can you help ?

Dojo Grid data wrapping incorrectly

I am facing a issue while displaying the data in DOJO Grid ... the data in the grid wraps and overflows to next line ... although it appears that the grid column has enough space to accomadate the data. I am using dojoroot\dojox\grid\_grid\Grid.css as the css to style grid and overidding the specific style class of this css to get the display required for the project.

Can someone help me with this ?