Announcement

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

    Hyperlink like history widget in ListGrid

    Hello List
    This is something very simple but I can't find a demo in Showcase or elsewhere. I want to display text looking like links in ListGrid Cells which would participate in history mechanism - exactly what GWT's Hyperlink class does, But I can't figure out how to embed Hyperlink in Grid Cells.
    ListGrid->createRecordComponent must return a Canvas - how does one turn Hyperlink into Canvas? I tried VLayout and embedding Hyperlink inside VLayout but that sent ListGrid rendering in some sort infinite loop :(

    In short, How to display clickable links which are not really anchors but invoke click actions with History support?

    Thanks in advance.

    #2
    Check out the source code for this showcase example:

    http://www.smartclient.com/smartgwt/showcase/#grid_datatypes_link_text

    It has a clear example on how to embed a link within a listgrid.

    As for the history support, you will need to use History.newItem() which adds string tokens to your history stack. Google GWT history support for lots of examples.

    Comment


      #3
      The example you mentioned uses anchor like links which is not I want. I don't have anchor hrefs to goto. I need to display cell data looking like links (decorated with underlines using css), which when clicked, inject history tokens.
      In short, I need GWT's Hyperlink embedded within grid cells. How do I do that? thanks.

      Comment

      Working...
      X