Skip to content

Sorting on grouped colum with null values #3271

@valepu

Description

@valepu

Hi,
If i try to sort a grouped colum that contains null values i receive this error:

"Error: groupingProcessingState[i].currentGroupHeader is null
service.setVisibility@http://localhost/resources/angularjs/grid-3.0.0-rc.20/ui-grid-unstable.js:17249:1
service.groupRows@http://localhost/resources/angularjs/grid-3.0.0-rc.20/ui-grid-unstable.js:16998:13
startProcessor@http://localhost/resources/angularjs/grid-3.0.0-rc.20/ui-grid-unstable.js:4163:23
handleProcessedRows@http://localhost/resources/angularjs/grid-3.0.0-rc.20/ui-grid-unstable.js:4179:20
Ae/e/l.promise.then/F@http://localhost/resources/angularjs/v1.2.26/angular.min.js:100:178
Ae/e/l.promise.then/F@http://localhost/resources/angularjs/v1.2.26/angular.min.js:100:178
Ae/f/<.then/<@http://localhost/resources/angularjs/v1.2.26/angular.min.js:101:350
Zd/this.$get</k.prototype.$eval@http://localhost/resources/angularjs/v1.2.26/angular.min.js:112:64
Zd/this.$get</k.prototype.$digest@http://localhost/resources/angularjs/v1.2.26/angular.min.js:109:160
Zd/this.$get</k.prototype.$evalAsync/<@http://localhost/resources/angularjs/v1.2.26/angular.min.js:112:177
e@http://localhost/resources/angularjs/v1.2.26/angular.min.js:37:495
te/k.defer/c<@http://localhost/resources/angularjs/v1.2.26/angular.min.js:41:235
"

on Chrome the error is (which is the same error, in the end, just with a different wording)

TypeError: Cannot read property 'expandedState' of null
at Object.service.setVisibility (ui-grid-unstable.js:17249)
at Grid.service.groupRows (ui-grid-unstable.js:16998)
at startProcessor (ui-grid-unstable.js:4163)
at handleProcessedRows (ui-grid-unstable.js:4179)
at l.promise.then.F (angular.js:11573)
at l.promise.then.F (angular.js:11573)
at angular.js:11659
at k.$get.k.$eval (angular.js:12702)
at k.$get.k.$digest (angular.js:12514)
at angular.js:12740

This happens either by clicking on the column header or by chosing the sorting from the column menu.

The same error happens if i try to group a column which the first row has a null value. In this case the grouping happens but the grid doesn't change unless i do some action (like adding another grouping or sorting or filtering)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions