{"action":"created","issue":{"url":"https://api.github.com/repos/mleibman/SlickGrid/issues/1134","repository_url":"https://api.github.com/repos/mleibman/SlickGrid","labels_url":"https://api.github.com/repos/mleibman/SlickGrid/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/mleibman/SlickGrid/issues/1134/comments","events_url":"https://api.github.com/repos/mleibman/SlickGrid/issues/1134/events","html_url":"https://github.com/mleibman/SlickGrid/issues/1134","id":190828323,"number":1134,"title":"Having issues with multiple tab pages including their own independent Slickgrid","user":{"login":"rgwest61","id":23386397,"avatar_url":"https://avatars.githubusercontent.com/u/23386397?v=3","gravatar_id":"","url":"https://api.github.com/users/rgwest61","html_url":"https://github.com/rgwest61","followers_url":"https://api.github.com/users/rgwest61/followers","following_url":"https://api.github.com/users/rgwest61/following{/other_user}","gists_url":"https://api.github.com/users/rgwest61/gists{/gist_id}","starred_url":"https://api.github.com/users/rgwest61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgwest61/subscriptions","organizations_url":"https://api.github.com/users/rgwest61/orgs","repos_url":"https://api.github.com/users/rgwest61/repos","events_url":"https://api.github.com/users/rgwest61/events{/privacy}","received_events_url":"https://api.github.com/users/rgwest61/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-21T20:32:24Z","updated_at":"2016-11-22T15:15:30Z","closed_at":null,"body":"Before I provide additional information such as code snippets I would like to know if the current master Slickgrid implementation allows for multiple tab pages each having their own independent Slickgrid tables?  I have not been successful as of today getting my current design and code to work 100%.  If such has been verified as being feasible I will provide a detailed explanation of my issues and required code snippets for assistance.  Thanks for your time and feedback in answering the initial question - stated again - does the current master Slickgrid implementation allows for multiple tab pages each having their own independent Slickgrid tables?"},"comment":{"url":"https://api.github.com/repos/mleibman/SlickGrid/issues/comments/262267363","html_url":"https://github.com/mleibman/SlickGrid/issues/1134#issuecomment-262267363","issue_url":"https://api.github.com/repos/mleibman/SlickGrid/issues/1134","id":262267363,"user":{"login":"jcready","id":358876,"avatar_url":"https://avatars.githubusercontent.com/u/358876?v=3","gravatar_id":"","url":"https://api.github.com/users/jcready","html_url":"https://github.com/jcready","followers_url":"https://api.github.com/users/jcready/followers","following_url":"https://api.github.com/users/jcready/following{/other_user}","gists_url":"https://api.github.com/users/jcready/gists{/gist_id}","starred_url":"https://api.github.com/users/jcready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcready/subscriptions","organizations_url":"https://api.github.com/users/jcready/orgs","repos_url":"https://api.github.com/users/jcready/repos","events_url":"https://api.github.com/users/jcready/events{/privacy}","received_events_url":"https://api.github.com/users/jcready/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T15:15:30Z","updated_at":"2016-11-22T15:15:30Z","body":"I agree that you should be using @6pac's fork. It's much more up-to-date. The simple solution I think would be to keep an array of every `Slick.Grid` instance you create. Something like `allGrids = []`, then `var grid = new Slick.Grid({ ... }); allGrids.push(grid);` This will allow you to just call `resizeCanvas()` on every grid whenever you change tabs:\r\n\r\n```js\r\n$(\"#tabs\").on(\"tabsshow\", function (event, ui) {\r\n  for (var i = 0; i < allGrids.length; i++) {\r\n    allGrids[i].resizeCanvas();\r\n  }\r\n});\r\n```\r\n\r\nIt would be better if you could keep a reference to which grid(s) belonged to which tab so that you could call `resizeCanvas()` on only the grids which are currently visible. But this simple solution should work for now."}}
{"actor":{"display_login":"jcready"}}