angular-ui/ui-grid

columnDef.cellClass() executes on an old version of the row model

Open

#2.377 geöffnet am 17. Dez. 2014

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (2.496 Forks)batch import
help wantedneeds: analysis

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

In gridApi.edit.on.afterCellEdit(), I update a row property used by columnDef.cellClass(). This is used for visually displaying validation. When cellClass() executes, it is operating on an old version of the row object. $scope.apply() does not seem to execute columnDef.cellClass() again. It would be wonderful if there was a way to trigger columnDef.cellClass() for a cell, row, or the entire grid.

Reproduction Steps: Edit a cell, click away, the cell class is not applied because the row object has not been updated when columnDef.cellClass() runs.

Contributor Guide