Display sum of column rather than count in searchPanes

Display sum of column rather than count in searchPanes

corentoulfcorentoulf Posts: 2Questions: 1Answers: 0

Hello,

I'd like to display the sum of a certain column index rather than the count of rows that matches the current filter in the searchPanes.viewTotal

In the case below, I would like to show the sum of quantities (63 + 33) rather than 2.

How should I process ?

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,177Questions: 1Answers: 2,590
    Answer ✓

    It was designed to count the number of items, not to sum those items, so you'll need to change the SearchPanes code if you want to do that - it's open-source so fine to do so.

    Colin

  • corentoulfcorentoulf Posts: 2Questions: 1Answers: 0

    Ok, I'll do it my side.
    Would be nice to have a kind of rowGroup.startRender for searchPanes too :)

    Thank you for your quick response !

  • colincolin Posts: 15,177Questions: 1Answers: 2,590
    Answer ✓

    I lied - it is possible to do - see example here . For the position field, it's replaced the item count with the sum of the age column for that position. Is that what you're after?

    Colin

Sign In or Register to comment.