enterprise-ng icon indicating copy to clipboard operation
enterprise-ng copied to clipboard

Datagrid: Allow users to sort group headers

Open madebyannalam opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. When we set the grouping column, the group headers are currently displayed in the same order as determined by the underlying dataset. I.e. If my dataset has a column "Role" and Role has the values Admin, Developer, Web Team, Alumni, Developer, Writer, then the group headers (for that column) would be listed as Admin, Developer, Web Team , Alumni, Writer. Ideally, the order should be Admin, Alumni, Developer, Web Team, Writer when we first set the grouping column.

Describe the solution you'd like When we set the grouping column, we should be allowed to specify if we want the group headers to be sorted by default - without having to override the default sorting function. (In the case of a text-based column, this would be in alphabetical or reverse-alphabetical order) The group headers' sorting should be preserved if the dataset is refreshed. E.g. adding/editing/deleting any of the records.

Describe alternatives you've considered N/A

Additional context N/A

madebyannalam avatar Mar 01 '22 04:03 madebyannalam

This one could be rather complicated. So labeling it as a tough one.

tmcconechy avatar Mar 01 '22 14:03 tmcconechy

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 contribution.

github-actions[bot] avatar May 05 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 19 '24 01:05 github-actions[bot]