-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Sorting grouped columns fails in chrome #4778
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
Comments
This is bound to chrome |
We facing the same issues in chrome, Custom Sorting Algorithm with Grouping is creating duplicate records in Grid. grouping: { |
This is due to the fact that the group header rows are strings by default. Note the comment on groupingShowCounts under GridOptions ui.grid.grouping
Disabling groupingShowCounts fixes the issue although it also hides the counts at the group level. Link to Plunkr |
For anyone that wants a resolution in chrome, what I've done is create a custom sorting function that sorts by looking only at the number. It'll split out between the parenthesis and the actual number and then sort the actual number. Here's an example of the custom sort that I've done. |
Add mousedown listener to ui.grid.edit.directive:uiGridEditor to disable blur handler if the element is a checkbox, and then re-focus the checkbox and enable the blur handler after a $timeout. This change is to deal with Safari and Firefox behavior in macOS where clicking the checkbox causes a blur event, and the value is not updated. GitHub issues: angular-ui#1785, angular-ui#4778, angular-ui#4782
When sorting grouped columns where row-count exceeds 9 the sorting fails. The data in the column is an integer. Strings work.
http://plnkr.co/edit/yqLPx1bu40ainD1VT9Bw?p=preview
Thanks
Róbert
The text was updated successfully, but these errors were encountered: