Avoid line wrapping in grid columns

View: New views
2 Messages — Rating Filter:   Alert me  

Avoid line wrapping in grid columns

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Any idea how can I add an overflow:hidden style to grid cells (created using markup) and avoid the effect that appears in the attachment (cells with double height)? And once there..would it be possible to add a tooltip to see all content?

Regards


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

row_wrap.PNG (9K) Download Attachment

Re: Avoid line wrapping in grid columns

by Dylan Tynan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can force single-line cells (chopping off extra content) with css like this:


.soria .dojoxGridCell {
        white-space: nowrap;
}

(change soria to tundra or whatever theme, of course).

Setting white-space to 'normal' will put it back.  You can achieve an
interesting effect (can be annoying or useful, depending on your point
of view I guess) by setting nowrap, like above, then doing this:

.soria .dojoxGridCellOver {
        white-space: normal;
}

This will cause grid lines to expand to full-strength when the user
hovers over the line, which allows them to view the entire content
without you needing to display a popup or tooltip or whatever.  On the
downside, some people dislike the shifting of the display as they move
their mouse around.

Dylan


On Wed, Aug 19, 2009 at 11:35 AM, Jose Noheda<jose.noheda@...> wrote:

> Hi,
> Any idea how can I add an overflow:hidden style to grid cells (created using
> markup) and avoid the effect that appears in the attachment (cells with
> double height)? And once there..would it be possible to add a tooltip to see
> all content?
> Regards
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest@...
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest