Announcement

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

    Table rendering inside Listgrid cell for multiple field

    Hi,

    I need to present multivalue field values as a table inside the ListGrid cell. By default it's shown as comma separated list. I set the field cell formatter like
    Code:
          multivalueField.setCellFormatter(new CellFormatter() {
             
             @Override
             public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                return "<table><tr><td>First Name 1</td></tr><tr><td>First Name 2</td></tr></table>";
             }
          });
    But it shows only first line from the table. So the question how to force the grid to adjust their lines height dynamically based on the size of the correspondent cells content.

    We have "Accounts" (Account #) that can belong to a few Clients (First Name, Last Name). We need to show accounts with their client information as 3 column grid.

    Thanks

    #2
    setFixedRecordHeights(false)

    Comment


      #3
      That works. Thanks!!!

      Comment

      Working...
      X