Using AG Grid Cell Rendering

View as Markdown

Summary

  • AG Grid Value Getters, Value Formatters and Cell Components all work in AdapTable
  • Prefer AdapTable Formatting, Styling and Calculated Columns where they cover the same need

AG Grid Rendering Objects

AG Grid provides very powerful functionality to enable custom cell and column content.

This is primarily achieved using 3 objects (depending on the complexity of the use case):

All of these work in AdapTable.

Where they cover the same need, we recommend using AdapTable objects instead:

Note

Behind the scenes AdapTable converts its objects to AG Grid Value Formatters and Cell Components

This recommendation is made for a number of reasons, based on extensive user experience, including:

  • AdapTable's objects can be changed at run-time via Wizards
  • AdapTable's objects are fully saveable in State, and therefore shareable with colleagues
  • AdapTable will ensure that they always work if AG Grid's api changes (i.e. they are future-proofed)

Hint

Keep an AG Grid Cell Component when the cell must show something AdapTable cannot author — for example an image, an interactive widget, or a third-party renderer

Note

  • Export can write the display value for a column that uses an AG Grid Value Formatter (or an AdapTable Display Format)
  • It cannot do that for a column that uses an AG Grid Cell Component — only the raw value is available
AG Grid Cell Rendering & Formatting
Fork
Try It Out
  • Export Current Layout to Excel and compare the display values: Value Formatter and Display Format columns export formatted text; the Cell Component column does not
Loading demo…