{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2377","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2377/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2377/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2377/events","html_url":"https://github.com/angular-ui/ng-grid/issues/2377","id":52202756,"number":2377,"title":"columnDef.cellClass() executes on an old version of the row model","user":{"login":"roguezedd","id":1326417,"avatar_url":"https://avatars.githubusercontent.com/u/1326417?v=3","gravatar_id":"","url":"https://api.github.com/users/roguezedd","html_url":"https://github.com/roguezedd","followers_url":"https://api.github.com/users/roguezedd/followers","following_url":"https://api.github.com/users/roguezedd/following{/other_user}","gists_url":"https://api.github.com/users/roguezedd/gists{/gist_id}","starred_url":"https://api.github.com/users/roguezedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roguezedd/subscriptions","organizations_url":"https://api.github.com/users/roguezedd/orgs","repos_url":"https://api.github.com/users/roguezedd/repos","events_url":"https://api.github.com/users/roguezedd/events{/privacy}","received_events_url":"https://api.github.com/users/roguezedd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ng-grid/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/ng-grid/milestones/12","html_url":"https://github.com/angular-ui/ng-grid/milestones/3.0","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/milestones/12/labels","id":435248,"number":12,"title":"3.0","description":"","creator":{"login":"timothyswt","id":1736223,"avatar_url":"https://avatars.githubusercontent.com/u/1736223?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyswt","html_url":"https://github.com/timothyswt","followers_url":"https://api.github.com/users/timothyswt/followers","following_url":"https://api.github.com/users/timothyswt/following{/other_user}","gists_url":"https://api.github.com/users/timothyswt/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyswt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyswt/subscriptions","organizations_url":"https://api.github.com/users/timothyswt/orgs","repos_url":"https://api.github.com/users/timothyswt/repos","events_url":"https://api.github.com/users/timothyswt/events{/privacy}","received_events_url":"https://api.github.com/users/timothyswt/received_events","type":"User","site_admin":false},"open_issues":154,"closed_issues":554,"state":"open","created_at":"2013-09-24T04:48:10Z","updated_at":"2015-03-19T07:38:15Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-12-17T05:20:46Z","updated_at":"2015-03-19T13:05:09Z","closed_at":null,"body":"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.\r\n\r\nReproduction Steps: Edit a cell,  click away, the cell class  is not applied because the row object has not been updated when columnDef.cellClass() runs."},"comment":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/comments/83552925","html_url":"https://github.com/angular-ui/ng-grid/issues/2377#issuecomment-83552925","issue_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2377","id":83552925,"user":{"login":"nadersoliman","id":1029009,"avatar_url":"https://avatars.githubusercontent.com/u/1029009?v=3","gravatar_id":"","url":"https://api.github.com/users/nadersoliman","html_url":"https://github.com/nadersoliman","followers_url":"https://api.github.com/users/nadersoliman/followers","following_url":"https://api.github.com/users/nadersoliman/following{/other_user}","gists_url":"https://api.github.com/users/nadersoliman/gists{/gist_id}","starred_url":"https://api.github.com/users/nadersoliman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadersoliman/subscriptions","organizations_url":"https://api.github.com/users/nadersoliman/orgs","repos_url":"https://api.github.com/users/nadersoliman/repos","events_url":"https://api.github.com/users/nadersoliman/events{/privacy}","received_events_url":"https://api.github.com/users/nadersoliman/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T13:05:09Z","updated_at":"2015-03-19T13:05:09Z","body":"I am experiencing a similar problem, whereby updating grid.options.data and then calling notifyDataChange(uiGridConstants.dataChange.ALL) didn't change the underlying row.entity in calls to cellClass despite in the same function cellClass I can definitely see grid.options.data updated already"}}