{"action":"created","issue":{"url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/647","repository_url":"https://api.github.com/repos/swimlane/ngx-datatable","labels_url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/647/comments","events_url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/647/events","html_url":"https://github.com/swimlane/ngx-datatable/issues/647","id":217869891,"number":647,"title":"Table not displaying after a vertical scroll and then a change to different columns and rows.","user":{"login":"professorjoshua","id":26721567,"avatar_url":"https://avatars3.githubusercontent.com/u/26721567?v=4","gravatar_id":"","url":"https://api.github.com/users/professorjoshua","html_url":"https://github.com/professorjoshua","followers_url":"https://api.github.com/users/professorjoshua/followers","following_url":"https://api.github.com/users/professorjoshua/following{/other_user}","gists_url":"https://api.github.com/users/professorjoshua/gists{/gist_id}","starred_url":"https://api.github.com/users/professorjoshua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/professorjoshua/subscriptions","organizations_url":"https://api.github.com/users/professorjoshua/orgs","repos_url":"https://api.github.com/users/professorjoshua/repos","events_url":"https://api.github.com/users/professorjoshua/events{/privacy}","received_events_url":"https://api.github.com/users/professorjoshua/received_events","type":"User","site_admin":false},"labels":[{"id":403504504,"url":"https://api.github.com/repos/swimlane/ngx-datatable/labels/Investigate","name":"Investigate","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-03-29T13:08:04Z","updated_at":"2017-07-21T18:30:57Z","closed_at":"2017-06-30T20:18:03Z","body":"\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**Current behavior**\r\n<!-- Describe how the bug manifests. -->\r\nCreate a drop down list that allows a user to select an object (a different table from the database to display).  When the user selects the object change the column headings, call the API to retrieve the appropriate data.  Up until now everything works.  Even if one object has 10 rows and a second object has 1000 rows.  Now set the vertical scroll to true (to increase the performance).  Switching between objects still works partially.  If you select the object with 1000 items, scroll towards the bottom of the table and then select the object with less rows you will see that the table is not repainted unless you scroll.  You may have to resize the browser window to get a scroll bar.  \r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nWhen you change the columns and rows (by selecting a different object) then table should be repainted regardless of where you were scrolled to in the previous table.\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/vtAo2zzWFn8kFOGRH88r). -->\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\nThe vertical scroll is needed to increase the performance.  Displaying the table of a 1100 rows of 5 columns took 6 to 10 seconds (depending on the browser) without the vertical scroll.  With the vertical scroll the table was rendered in 1 second.      \r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nWindows 10 Enterprise, Visual Studio 2015, IIS \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\"@swimlane/ngx-datatable\": \"~6.3.0\"\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\nAngular 2\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\nAll browsers\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\nTypeScript\r\n"},"comment":{"url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/comments/317078359","html_url":"https://github.com/swimlane/ngx-datatable/issues/647#issuecomment-317078359","issue_url":"https://api.github.com/repos/swimlane/ngx-datatable/issues/647","id":317078359,"user":{"login":"jordanburke","id":67263,"avatar_url":"https://avatars1.githubusercontent.com/u/67263?v=4","gravatar_id":"","url":"https://api.github.com/users/jordanburke","html_url":"https://github.com/jordanburke","followers_url":"https://api.github.com/users/jordanburke/followers","following_url":"https://api.github.com/users/jordanburke/following{/other_user}","gists_url":"https://api.github.com/users/jordanburke/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanburke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanburke/subscriptions","organizations_url":"https://api.github.com/users/jordanburke/orgs","repos_url":"https://api.github.com/users/jordanburke/repos","events_url":"https://api.github.com/users/jordanburke/events{/privacy}","received_events_url":"https://api.github.com/users/jordanburke/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T18:30:57Z","updated_at":"2017-07-21T18:30:57Z","body":"We ran into the same thing as @brokenhands clearing the results before the next set, and confirming the workaround also works! The only downside is if you have the row count display shown it does count it as a single row in the interim."}}
{"actor":{"display_login":"jordanburke"}}