To position AgGrid's total row at the top, you can use the property floatingTopRowData
and set it to an array containing the data for the total row. This will create a floating top row that will always be displayed at the top of the grid. Here's an example:
gridOptions = {
// other grid options...
floatingTopRowData: [totalRowData],
floatingTopRow: true
};
Make sure to set floatingTopRow
to true
as well, as this enables the floating top row feature. You can customize the appearance of the floating top row using CSS.
Asked: 2022-08-01 11:00:00 +0000
Seen: 17 times
Last updated: Jun 29 '21