Announcement

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

    Modify Detail Field on Client Side?

    Hello,

    I have a ListGrid that has its ExpansionMode set to DETAIL_FIELD.

    The detail field shows up just fine, but I would like to modify the contents before it's added to the grid.

    I can't do the change server-side because the changes relate to date/time modifications that account for the local browser time.

    I can modify the visible, non-detail fields with setCellFormatter, but is there equivalent functionality for a detail field?

    Thanks!

    #2
    You should override getExpansionComponent() to return whatever component you want. The expansion component automatically generated for DETAIL_FIELD mode is just an HTMLFlow holding the value of the configured field as its contents.

    Comment


      #3
      Originally posted by Isomorphic View Post
      You should override getExpansionComponent() to return whatever component you want. The expansion component automatically generated for DETAIL_FIELD mode is just an HTMLFlow holding the value of the configured field as its contents.
      Worked like a charm! Thanks!

      Comment

      Working...
      X