{"action":"created","issue":{"url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/210","repository_url":"https://api.github.com/repos/swimlane/angular2-data-table","labels_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/210/comments","events_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/210/events","html_url":"https://github.com/swimlane/angular2-data-table/issues/210","id":183513499,"number":210,"title":"bug(): PR #201 breaks server-side paging","user":{"login":"otodockal","id":2613273,"avatar_url":"https://avatars.githubusercontent.com/u/2613273?v=3","gravatar_id":"","url":"https://api.github.com/users/otodockal","html_url":"https://github.com/otodockal","followers_url":"https://api.github.com/users/otodockal/followers","following_url":"https://api.github.com/users/otodockal/following{/other_user}","gists_url":"https://api.github.com/users/otodockal/gists{/gist_id}","starred_url":"https://api.github.com/users/otodockal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otodockal/subscriptions","organizations_url":"https://api.github.com/users/otodockal/orgs","repos_url":"https://api.github.com/users/otodockal/repos","events_url":"https://api.github.com/users/otodockal/events{/privacy}","received_events_url":"https://api.github.com/users/otodockal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swimlane/angular2-data-table/labels/Bug","name":"Bug","color":"ee0701"},{"url":"https://api.github.com/repos/swimlane/angular2-data-table/labels/Investigate","name":"Investigate","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T20:05:18Z","updated_at":"2016-10-17T20:37:47Z","closed_at":"2016-10-17T20:37:47Z","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here\r\n```\r\n\r\n**Current behavior**\r\n<!-- Describe how the bug manifests. -->\r\n\r\nThe problem is only with server-side paging, probably. The bug was introduced by PR #201 \r\n\r\nMethod RowHeightCache.**initCache** iterate over the collection rows using of **for** loop, but it doesn't get proper index when paginator is not used in row (e.g. click on page 3 at first). A solution can be using of **for...in** loop, but it's not also the proper solution for everything...\r\n\r\n```\r\nTypeError: Cannot read property '$$expanded' of undefined\r\n```\r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\n\r\n**Reproduction of the problem**\r\n<!-- If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/TLx2vYlCTLsqcLwvWafd). -->\r\n\r\nclick on page > 2\r\n\r\nhttps://plnkr.co/edit/I4Z2FibupHPGYVUXQGYh?p=preview\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n<!-- Describe the motivation or the concrete use case -->\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n\r\n* **Table version:** 0.7.x\r\n<!-- Check whether this is still an issue in the most recent table version -->\r\n\r\n* **Angular version:** 2.0.x\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n<!-- All browsers where this could be reproduced -->\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\n"},"comment":{"url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/comments/254326355","html_url":"https://github.com/swimlane/angular2-data-table/issues/210#issuecomment-254326355","issue_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/210","id":254326355,"user":{"login":"amcdnl","id":227909,"avatar_url":"https://avatars.githubusercontent.com/u/227909?v=3","gravatar_id":"","url":"https://api.github.com/users/amcdnl","html_url":"https://github.com/amcdnl","followers_url":"https://api.github.com/users/amcdnl/followers","following_url":"https://api.github.com/users/amcdnl/following{/other_user}","gists_url":"https://api.github.com/users/amcdnl/gists{/gist_id}","starred_url":"https://api.github.com/users/amcdnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcdnl/subscriptions","organizations_url":"https://api.github.com/users/amcdnl/orgs","repos_url":"https://api.github.com/users/amcdnl/repos","events_url":"https://api.github.com/users/amcdnl/events{/privacy}","received_events_url":"https://api.github.com/users/amcdnl/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T20:37:47Z","updated_at":"2016-10-17T20:37:47Z","body":"Fixed. @java2kus can u verify this is a good change?"}}
{"actor":{"display_login":"amcdnl"}}