Using AG Grid Cell Rendering

Summary

  • AG Grid's Value Getters, Value Formatters and Cell Components are fully supported in AdapTable
  • Nevertheless we recommend using AdapTable Styling and Formatting wherever possible instead

AG Grid Rendering Objects

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

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

  • Value Formatters - allow users to format the values which are displayed (essentially text formatting)
  • Cell Components (previously called Cell Renderers) - allow users to display anything in a cell

Both of these will work in AdapTable and nothing will be lost.

However, despite the richness of the AG Grid rendering capabilities, we recommend not using AG Grid's Value Formatters or Cell Components, where possible.

Instead we recommend using:

Note

Behind the scenes AdapTable will, itself, convert 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

AG Grid Cell Rendering & Formatting
Fork
Try It Out
  • Export Current Layout to Excel and note how AdapTable can display the display values for columns using AG Grid's Value Formatter (but not if using a Cell Component)