fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList Grouped: Allow showing cumulative data (e.g. sum) in nested group header

Open harshika-kashyap opened this issue 4 years ago • 3 comments

Describe the feature that you would like added

We need to show cumulative data (e.g. sum, average, etc.) in our nested group header, which should be aligned with the columns. Please see the example below:

image

Is there any way I can show the same using DetailsList Grouped control? Right now, I suppose only title is allowed in the group header, like below:

image

What component or utility would this be added to

DetailsList Grouped

harshika-kashyap avatar Sep 29 '21 10:09 harshika-kashyap

You could hook into the headers via the onRenderHeader callback. There you could calculate the sums and display them. An example of custom group headers is in the docs of this component.

Ducki avatar Sep 30 '21 14:09 Ducki

@harshika-kashyap -I’ve added this to our backlog for review but it’s low on our priority list as we’re likely not going to get to it for a while as we’re currently focused on larger coherence work items and enhancements to our performance. However, If you come up with a solution in the interim and would like to submit a PR for this request - our team will gladly review it!

gouttierre avatar Oct 04 '21 14:10 gouttierre

Styling needs to be resolved. https://codepen.io/TonyH/pen/vYdZRpm

Once https://github.com/microsoft/fluentui/issues/23114 has been resolved the overrides fixing group nesting levels will not be required

tonyhallett avatar May 20 '22 18:05 tonyhallett

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Apr 16 '23 01:04 msft-fluent-ui-bot