Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Igx grid: summary per row #15348

Open
Eralmidia opened this issue Feb 10, 2025 · 2 comments
Open

Igx grid: summary per row #15348

Eralmidia opened this issue Feb 10, 2025 · 2 comments

Comments

@Eralmidia
Copy link

Eralmidia commented Feb 10, 2025

Is your feature request related to a problem? Please describe.

Not sure if this is technically feasible with how the grid is built, but this was brought to us as a request from one of our customers, so I'll add it as a feature request.

When using grouping and summaries, you get a summary per group. However, to view this summary, you need to expand the group to see it. If the groups contains a lot of data, this can result in a lot of scrolling and making it difficult to compare the summaries in the groups.

Describe the solution you'd like

The following screenshot was provided as a mockup by the customer, indicating that the group row itself is being used as a summary as well. We do agree that this does make for a very easy and nice comparison of the groups which is not easily done in todays solution (the summary being within the group itself)

Image

Additional context

The main challenge would perhaps be how many columns to use for the name, which does not get a summary, as the length required would vary a lot both with the text length and number of grouping being performed. Marking certain columns for the name would probably not work if you take into consideration that the grid supports column moving, so it would either need to be some smartness in the grid, or perhaps an input to the grid which takes the number of column from the left of use for the name.

@ChronosSF
Copy link
Member

There are cascading issues and visual changes if we decide to break down the group row into columns. Do you think that providing the summaries result as template context for the group row instead can be a satisfactory solution? Sure, the exact solution you showed will be too difficult/unfeasible to go for but you can have a collection of the most important summaries for the group neatly arranged with the template, just not spread as actual columns.

@Eralmidia
Copy link
Author

Hi @ChronosSF. Thanks for the reply. Yes, I was kinda assuming that was the case. Just wanted to check, as I really did see the customers point in terms of how easy it was to compare the groups.

In our case the users of the grid typically has quite a lot of freedom in terms of choosing what to display. For some grids maybe we would be able to choose a suitable set of fields to choose for the summary, other times it would most likely be more difficult. Perhaps if data is easily accessible we can retrieve them and provide a button or whatever external from the grid that provide the summary comparison in a tooltip/dropdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants