Announcement

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

    ListGridField - Widget as contents?

    Is there any way to display a Widget inside a ListGridField, rather than just raw HTML? I'd like to use the GWT Hyperlink class to create internal links, but just providing <a href="#something"> causes internet explorer 8 (I haven't tested others yet) to refresh the page when I click the link.

    I probably could add a cell click handler, style the cell to look like a hyperlink, and add an item to the history on a cell click, but then I can't provide "open in a new window".

    --Andrew

    #2
    See this sample.

    Comment


      #3
      That sample creates external links. I'd like to have links that behave properly with GWT's history management.

      Comment


        #4
        If you really need widgets in cells, see this sample. You can use a DynamicForm with a LinkItem and register a click handler. Note that using widgets in cells is not very efficient and you should try using ListGridFieldType.ICON instead if possible.

        Comment


          #5
          Awesome! Thanks -- that solves my problem.

          Comment

          Working...
          X