{"action":"created","issue":{"url":"https://api.github.com/repos/ceolter/ag-grid/issues/46","repository_url":"https://api.github.com/repos/ceolter/ag-grid","labels_url":"https://api.github.com/repos/ceolter/ag-grid/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/ag-grid/issues/46/comments","events_url":"https://api.github.com/repos/ceolter/ag-grid/issues/46/events","html_url":"https://github.com/ceolter/ag-grid/issues/46","id":66568869,"number":46,"title":"[FEAT] Checkbox header to select/unselect all rows","user":{"login":"lukelalo","id":4819263,"avatar_url":"https://avatars.githubusercontent.com/u/4819263?v=3","gravatar_id":"","url":"https://api.github.com/users/lukelalo","html_url":"https://github.com/lukelalo","followers_url":"https://api.github.com/users/lukelalo/followers","following_url":"https://api.github.com/users/lukelalo/following{/other_user}","gists_url":"https://api.github.com/users/lukelalo/gists{/gist_id}","starred_url":"https://api.github.com/users/lukelalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukelalo/subscriptions","organizations_url":"https://api.github.com/users/lukelalo/orgs","repos_url":"https://api.github.com/users/lukelalo/repos","events_url":"https://api.github.com/users/lukelalo/events{/privacy}","received_events_url":"https://api.github.com/users/lukelalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2015-04-06T09:34:40Z","updated_at":"2016-09-02T21:26:29Z","closed_at":null,"body":"Hi!\r\n\r\nI would need a checkbox header to select unselect all rows. It is very useful when you want to perform a full delete of all rows.\r\n\r\n![checkbox-header](https://cloud.githubusercontent.com/assets/4819263/7002796/abb1e6da-dc50-11e4-9fde-3abd8de19261.png)\r\n\r\nRegards!\r\nPablo García"},"comment":{"url":"https://api.github.com/repos/ceolter/ag-grid/issues/comments/244491309","html_url":"https://github.com/ceolter/ag-grid/issues/46#issuecomment-244491309","issue_url":"https://api.github.com/repos/ceolter/ag-grid/issues/46","id":244491309,"user":{"login":"smwbis","id":4484274,"avatar_url":"https://avatars.githubusercontent.com/u/4484274?v=3","gravatar_id":"","url":"https://api.github.com/users/smwbis","html_url":"https://github.com/smwbis","followers_url":"https://api.github.com/users/smwbis/followers","following_url":"https://api.github.com/users/smwbis/following{/other_user}","gists_url":"https://api.github.com/users/smwbis/gists{/gist_id}","starred_url":"https://api.github.com/users/smwbis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smwbis/subscriptions","organizations_url":"https://api.github.com/users/smwbis/orgs","repos_url":"https://api.github.com/users/smwbis/repos","events_url":"https://api.github.com/users/smwbis/events{/privacy}","received_events_url":"https://api.github.com/users/smwbis/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T21:26:29Z","updated_at":"2016-09-02T21:26:29Z","body":"@dhintze Sorry, I totally missed your question. I was on vacation for a few weeks back then and must have missed it in my flurry of emails upon return, sorry.\r\n\r\nIt may not matter anymore, but to answer your question, I was using v4.0.5 at the time. With v5, there were some model changes (they are not documented and therefore not part of the public api, so they could [and did] break with a new release). In v5, it appears to be `gridOptions.api.rowModel.rootNode.childrenAfterFilter` that will give you the data rows remaining after filtering. \r\n\r\nReally though, instead of doing this:\r\n```\r\n_.forEach(vm.gridOptions.api.getModel().rowsAfterFilter, function (node) {\r\n    node.setSelected(true);\r\n});\r\n```\r\nI should have used the documented `forEachNodeAfterFilter()`, since it is specifically for iterating through the nodes after filter, and it would not have broken with the version update:\r\n```\r\nvm.gridOptions.api.forEachNodeAfterFilter( function(node, index) {\r\n    node.setSelected(true);\r\n});\r\n```"}}
{"actor":{"display_login":"smwbis"}}