Server-Side Row Model - Calculated Columns

Summary

  • Scalar (ie. single row) Calculated Columns work when using the Server-Side Row Model
  • Aggregated (i.e. multi row) Calculated Columns require the calculated to be performed on the server

Calculated Columns can work automatically when using AG Grid's Server-Side Row Model.

However this does depend on the complexity of the Calculation:

Standard Calculated Columns

Standard Calculated Columns operate as normal in the Server-Side Row Model.

Note

This is because they use Standard Expressions which operate on a single row and are evalated as the row is rendered.

Aggregated Calculated Columns

The more complex type of Calculated Columns (Aggregated , Cumulative and Quantile) do not work out of the box when using the Server-Side Row Model.

Note

This is because they use Aggregated Expressions which work on multiple rows, and not all will be present on the client.

When this is the case, you will need to evaluate the Expression on the Server and return the value to AdapTable to render.

SSRM - Calculated Columns
Fork
  • This demo includes 3 Calculated Columns - Total, Most, Points
  • All are standard (i.e. single-row) Calculated Columns and all work out of the box when using Server-Side Row Model