angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

[BUG] Aggregate functions are not working with columns which have the cell template property #7270

Closed santy4747 closed 1 year ago

santy4747 commented 1 year ago

The aggregate functions which when used on a column that has a cellTemplate property is not displaying any values for the function used. Let's say there are three columns (A,B,C) and the column C has a cellTemplate property to apply specific styles to it. After grouping column A and applying an aggregate function to the column C we can see that the aggregate functions did not work

  1. Go to state column and click on the column dropdown
  2. Click on group option from the dropdown
  3. Scroll to balance column and click on the column dropdown
  4. Select an aggregate option and see the error

The specified aggregate function should've been displayed instead of the random value which is being displayed now

Applying group to the state column

Selecting aggregate function

The expected behaviour for grouping can be see in age column

After applying aggregate function

Applying aggregate function to column with cell template

Here's the fiddle with the code, I suggest you to copy paste it in your local editor as for some reason this doesn't work in JSFiddle https://jsfiddle.net/santy4747/kvhn7yf3/3/

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it has not had recent activity. If you believe that this is still an issue in the latest version, feel free to re-open it. Thank you for your contributions.