Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to implement nice tooltips (hover) in list grid cells?

    Question is somewhat related to http://forums.smartclient.com/showthread.php?p=85938

    If the content of a list grid cell can't be fully displayed to size constraints (overflow hidden or ellipsis) I'd like show the full content in a "tooltip" or hover. I pure HTML I'd set the title attribute for this.

    Taking http://www.smartclient.com/smartgwt/showcase/#grid_autofit_rows in FF and setting title="<full-content>" on either the <td> or the <div> produces a nice big hover that is properly resized by the browser.

    How do I achieve this directly with SmartGwt?

    #2
    Yes, I do know http://www.smartclient.com/smartgwt/showcase/#grid_interaction_value_hover and canHover/setHoverWidth/setShowHover et al.

    The issue I have with this approach is that /I/ have to set the width of the hover. It's:
    a) always the same no matter how much content it has got to accommodate
    b) always the same for each grid field (can only be set on the grid AFAIK)

    Comment

    Working...
    X