{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3449","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3449/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3449/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3449/events","html_url":"https://github.com/angular-ui/ng-grid/issues/3449","id":74107982,"number":3449,"title":"cellClass calculated with previous value after cell edit","user":{"login":"admosity","id":4655972,"avatar_url":"https://avatars.githubusercontent.com/u/4655972?v=3","gravatar_id":"","url":"https://api.github.com/users/admosity","html_url":"https://github.com/admosity","followers_url":"https://api.github.com/users/admosity/followers","following_url":"https://api.github.com/users/admosity/following{/other_user}","gists_url":"https://api.github.com/users/admosity/gists{/gist_id}","starred_url":"https://api.github.com/users/admosity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admosity/subscriptions","organizations_url":"https://api.github.com/users/admosity/orgs","repos_url":"https://api.github.com/users/admosity/repos","events_url":"https://api.github.com/users/admosity/events{/privacy}","received_events_url":"https://api.github.com/users/admosity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-07T19:58:58Z","updated_at":"2015-05-15T20:43:54Z","closed_at":null,"body":"plunker: http://plnkr.co/edit/rfnc5RctIvFrBZ1jlNJj?p=preview\r\nversion: v3.0.0-rc.21\r\n\r\nIn this example, any cell that gets edited increments the id by 1. Any cell with an even number gets the class injected. The cellClass function is calculated with the old value after the afterCellEdit event is fired. The id increment happens inside the afterCellEdit. \r\n\r\nMy use case for this is I want to implement a column that shows if the row has been edited or not and whether it passes validation:\r\n\r\nThis is what happens after the first edit:\r\n![image](https://cloud.githubusercontent.com/assets/4655972/7524650/7a9f0728-f4d1-11e4-8a5b-f7b554b6865e.png)\r\n\r\nIf I make another edit, or edit/cancel on the same row, it processes correct:\r\n![image](https://cloud.githubusercontent.com/assets/4655972/7524684/aaa76e1a-f4d1-11e4-88f6-a4efd4deaa94.png)\r\n\r\nWhen I change it to a valid email:\r\n![image](https://cloud.githubusercontent.com/assets/4655972/7524696/c5513dc2-f4d1-11e4-8233-a91d5acd68fc.png)\r\n\r\nAnd when I double click and cancel (yellow for modified and valid):\r\n![image](https://cloud.githubusercontent.com/assets/4655972/7524701/d3760eaa-f4d1-11e4-8e32-11f96306059a.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/comments/102522163","html_url":"https://github.com/angular-ui/ng-grid/issues/3449#issuecomment-102522163","issue_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3449","id":102522163,"user":{"login":"squarewave24","id":843437,"avatar_url":"https://avatars.githubusercontent.com/u/843437?v=3","gravatar_id":"","url":"https://api.github.com/users/squarewave24","html_url":"https://github.com/squarewave24","followers_url":"https://api.github.com/users/squarewave24/followers","following_url":"https://api.github.com/users/squarewave24/following{/other_user}","gists_url":"https://api.github.com/users/squarewave24/gists{/gist_id}","starred_url":"https://api.github.com/users/squarewave24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squarewave24/subscriptions","organizations_url":"https://api.github.com/users/squarewave24/orgs","repos_url":"https://api.github.com/users/squarewave24/repos","events_url":"https://api.github.com/users/squarewave24/events{/privacy}","received_events_url":"https://api.github.com/users/squarewave24/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T20:43:54Z","updated_at":"2015-05-15T20:43:54Z","body":"this is wild! such a simple thing.. spending hours in getting it to work :/ \r\n\r\nhave you tried other events ? \r\nhttp://ui-grid.info/docs/#/api/ui.grid.rowEdit.service:uiGridRowEditService"}}