Adding a "totals" row to the datatable

Hello,

Is there some way to add a “totals” row to the datatable? E.g., let’s say, I am displaying the number of flies in different rooms of a house:

Room Fly count
Living room 1
Dining room 3
Bedroom 0

What I would like to do is add a “totals” row (which I am happy to provide data for myself—there is no need for magical aggregators doing any magic) that would looks like this:

Room Fly count
Total 4
Living room 1
Dining room 3
Bedroom 0

What makes this row special is that it is:

  • excluded from sorting and
  • perhaps styled differently, e.g. like a second header row.

I think I can do the styling myself, but I do not know how to exclude the row from sorting. Any advice?

Thank you,

Denis.

Not currently but there is some work happening right now to update to use the latest version of SlickGrid and also expose some of its more advanced features. cc @Philipp_Rudiger can comment more.

I think SlickGrid does have support for this but we haven’t exposed it so I’d encourage you to file an issue to request this feature (or even submit a PR if you’re up to it).