Ask Your Question
0

What is the method for positioning AgGrid's total row at the top?

asked 2022-08-01 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-06-29 12:00:00 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-01 11:00:00 +0000

Seen: 17 times

Last updated: Jun 29 '21