{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2829","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2829/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2829/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2829/events","html_url":"https://github.com/angular-ui/ng-grid/issues/2829","id":58586112,"number":2829,"title":"hideColumn, what should be changing ?","user":{"login":"cookednoodles","id":226331,"avatar_url":"https://avatars.githubusercontent.com/u/226331?v=3","gravatar_id":"","url":"https://api.github.com/users/cookednoodles","html_url":"https://github.com/cookednoodles","followers_url":"https://api.github.com/users/cookednoodles/followers","following_url":"https://api.github.com/users/cookednoodles/following{/other_user}","gists_url":"https://api.github.com/users/cookednoodles/gists{/gist_id}","starred_url":"https://api.github.com/users/cookednoodles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookednoodles/subscriptions","organizations_url":"https://api.github.com/users/cookednoodles/orgs","repos_url":"https://api.github.com/users/cookednoodles/repos","events_url":"https://api.github.com/users/cookednoodles/events{/privacy}","received_events_url":"https://api.github.com/users/cookednoodles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ng-grid/labels/waiting-response","name":"waiting-response","color":"0052cc"}],"state":"closed","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":152,"closed_issues":567,"state":"open","created_at":"2013-09-24T04:48:10Z","updated_at":"2015-03-24T16:03:13Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-23T13:37:41Z","updated_at":"2015-03-24T16:03:13Z","closed_at":"2015-03-24T16:03:13Z","body":"I'm trying to persist the visibility change of cols, so when a columnVisibilityChanged event happens, I save it to the database.\r\nAfter some debugging, I noticed that it was always saving visible as true.\r\n\r\nAfter doing some digging, I noticed that when a column changes from the menu `$scope.hideColumn` is setting :\r\n`$scope.col.colDef.visible = false; `\r\n\r\nHowever the actual saved value is col.visible, I'm not 100% sure what the fix should be, should hideColumn be affecting just colDef, or both ?\r\nor are changes to colDef reflected back to the visible at a later time ? (So I'd be saving too early)\r\n\r\nI'm not 100% sure as I can't really reproduce this on the website demos."}}