{"action":"created","issue":{"url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/176","labels_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/176/comments","events_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/176/events","html_url":"https://github.com/MoonStorm/trNgGrid/issues/176","id":73261977,"number":176,"title":"dynamic column/fields selection with server-side paging throws error","user":{"login":"malde","id":875221,"avatar_url":"https://avatars.githubusercontent.com/u/875221?v=3","gravatar_id":"","url":"https://api.github.com/users/malde","html_url":"https://github.com/malde","followers_url":"https://api.github.com/users/malde/followers","following_url":"https://api.github.com/users/malde/following{/other_user}","gists_url":"https://api.github.com/users/malde/gists{/gist_id}","starred_url":"https://api.github.com/users/malde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malde/subscriptions","organizations_url":"https://api.github.com/users/malde/orgs","repos_url":"https://api.github.com/users/malde/repos","events_url":"https://api.github.com/users/malde/events{/privacy}","received_events_url":"https://api.github.com/users/malde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-05T09:36:11Z","updated_at":"2015-11-18T15:43:35Z","closed_at":null,"body":"Hey, I'm using the table with huge datasets (think more than 30 columns and up), therefore I have to preselect (or let the user change) fields that should be displayed. A minimal example on how it's done you'll find here: http://plnkr.co/ZPGfSB9OjFDu74OgPtpK however, I don't know how to simulate the server-side here.\r\n\r\nNow, regarding the error: If a new column is (de)selected, almost everytime this error is thrown:\r\n```\r\nError: [$compile:ctreq] Controller 'trNgGrid', required by directive 'trNgGridBodyCell', can't be found!\r\nhttp://errors.angularjs.org/1.3.15/$compile/ctreq?p0=trNgGrid&p1=trNgGridBodyCell\r\n    at REGEX_STRING_REGEXP (angular.js:63)\r\n    at getControllers (angular.js:7583)\r\n    at nodeLinkFn (angular.js:7751)\r\n    at compositeLinkFn (angular.js:7117)\r\n    at nodeLinkFn (angular.js:7763)\r\n    at compositeLinkFn (angular.js:7117)\r\n    at publicLinkFn (angular.js:6996)\r\n    at $get.boundTranscludeFn (angular.js:7135)\r\n    at controllersBoundTransclude (angular.js:7795)\r\n    at ngRepeatAction (angular.js:24681)\r\n```\r\nThis does not happen in the plunker I've linked and only seems to affect the server-side version of doing this.\r\n\r\nOn a side note, it does not seem to affect the functionality, more like a heads up."},"comment":{"url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/comments/157753131","html_url":"https://github.com/MoonStorm/trNgGrid/issues/176#issuecomment-157753131","issue_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/176","id":157753131,"user":{"login":"granato","id":5871107,"avatar_url":"https://avatars.githubusercontent.com/u/5871107?v=3","gravatar_id":"","url":"https://api.github.com/users/granato","html_url":"https://github.com/granato","followers_url":"https://api.github.com/users/granato/followers","following_url":"https://api.github.com/users/granato/following{/other_user}","gists_url":"https://api.github.com/users/granato/gists{/gist_id}","starred_url":"https://api.github.com/users/granato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granato/subscriptions","organizations_url":"https://api.github.com/users/granato/orgs","repos_url":"https://api.github.com/users/granato/repos","events_url":"https://api.github.com/users/granato/events{/privacy}","received_events_url":"https://api.github.com/users/granato/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T15:43:35Z","updated_at":"2015-11-18T15:43:35Z","body":"In my understanding it happens when checking one of the columns too fast before the framework and controller is initialised.\r\n\r\nIt only happens in my application when I have a lot of records in my trNgGrid and I'm adding/removing columns dynamically before the previous rerender is done (because having +50 records takes a second or so). \r\n\r\nI think that making sure the controller is initialised before executing/rerendering would actually fix the issue."}}