{"action":"created","issue":{"url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/288","repository_url":"https://api.github.com/repos/APY/APYDataGridBundle","labels_url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/288/comments","events_url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/288/events","html_url":"https://github.com/APY/APYDataGridBundle/issues/288","id":7794978,"number":288,"title":"Handle multiple grids on the same page","user":{"login":"stanislavprokopov","id":713715,"avatar_url":"https://avatars.githubusercontent.com/u/713715?v=3","gravatar_id":"","url":"https://api.github.com/users/stanislavprokopov","html_url":"https://github.com/stanislavprokopov","followers_url":"https://api.github.com/users/stanislavprokopov/followers","following_url":"https://api.github.com/users/stanislavprokopov/following{/other_user}","gists_url":"https://api.github.com/users/stanislavprokopov/gists{/gist_id}","starred_url":"https://api.github.com/users/stanislavprokopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanislavprokopov/subscriptions","organizations_url":"https://api.github.com/users/stanislavprokopov/orgs","repos_url":"https://api.github.com/users/stanislavprokopov/repos","events_url":"https://api.github.com/users/stanislavprokopov/events{/privacy}","received_events_url":"https://api.github.com/users/stanislavprokopov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/APY/APYDataGridBundle/labels/Documentation","name":"Documentation","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/APY/APYDataGridBundle/milestones/4","html_url":"https://github.com/APY/APYDataGridBundle/milestones/2.3","labels_url":"https://api.github.com/repos/APY/APYDataGridBundle/milestones/4/labels","id":1458105,"number":4,"title":"2.3","description":"APYDataGridBundle Reloaded\r\n\r\nhttps://github.com/APY/APYDataGridBundle/issues/801","creator":{"login":"hmert","id":182906,"avatar_url":"https://avatars.githubusercontent.com/u/182906?v=3","gravatar_id":"","url":"https://api.github.com/users/hmert","html_url":"https://github.com/hmert","followers_url":"https://api.github.com/users/hmert/followers","following_url":"https://api.github.com/users/hmert/following{/other_user}","gists_url":"https://api.github.com/users/hmert/gists{/gist_id}","starred_url":"https://api.github.com/users/hmert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmert/subscriptions","organizations_url":"https://api.github.com/users/hmert/orgs","repos_url":"https://api.github.com/users/hmert/repos","events_url":"https://api.github.com/users/hmert/events{/privacy}","received_events_url":"https://api.github.com/users/hmert/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":139,"state":"open","created_at":"2015-12-13T21:09:18Z","updated_at":"2016-03-06T13:20:20Z","due_on":"2016-01-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2012-10-23T12:04:47Z","updated_at":"2016-03-06T13:20:20Z","closed_at":"2016-03-06T13:20:20Z","body":"According to the example on the \"Handle multiple grids on the same page\" documentation page, you can write something like this:\r\n\r\n```php\r\nif ($grid->isReadyForRedirect() || $grid2->isReadyForRedirect() )\r\n{\r\n    if ($grid->isReadyForExport())\r\n    {\r\n        return $grid->getExportResponse();\r\n    }\r\n\r\n    if ($grid2->isReadyForExport())\r\n    {\r\n        return $grid2->getExportResponse();\r\n    }\r\n\r\n    // Url is the same for the grids\r\n    return new RedirectResponse($grid->getRouteUrl());\r\n}\r\n```\r\n\r\nBut actually if you try to do this it will not work, because the `getExportResponse` method is declared as `protected function getExportResponse()`.\r\n\r\n###### Update:\r\n\r\nThe example with the GridManager wont work too:\r\n\r\n```php\r\nif ($gridManager->isReadyForRedirect())\r\n{\r\n    if ($gridManager->isReadyForExport())\r\n    {\r\n        return $gridManager->getExportResponse();\r\n    }\r\n\r\n    return new RedirectResponse($gridManager->getRouteUrl());\r\n}\r\n```\r\n\r\nThe GridManager doesnt have a `getExportResponse` method.\r\n\r\nLink: https://github.com/Abhoryo/APYDataGridBundle/blob/master/Resources/doc/grid_configuration/multi_grid_manager.md"},"comment":{"url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/comments/192886637","html_url":"https://github.com/APY/APYDataGridBundle/issues/288#issuecomment-192886637","issue_url":"https://api.github.com/repos/APY/APYDataGridBundle/issues/288","id":192886637,"user":{"login":"qferr","id":7026161,"avatar_url":"https://avatars.githubusercontent.com/u/7026161?v=3","gravatar_id":"","url":"https://api.github.com/users/qferr","html_url":"https://github.com/qferr","followers_url":"https://api.github.com/users/qferr/followers","following_url":"https://api.github.com/users/qferr/following{/other_user}","gists_url":"https://api.github.com/users/qferr/gists{/gist_id}","starred_url":"https://api.github.com/users/qferr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qferr/subscriptions","organizations_url":"https://api.github.com/users/qferr/orgs","repos_url":"https://api.github.com/users/qferr/repos","events_url":"https://api.github.com/users/qferr/events{/privacy}","received_events_url":"https://api.github.com/users/qferr/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T13:20:20Z","updated_at":"2016-03-06T13:20:20Z","body":"Documentation is right for the master, the method `Grid::getExportResponse` is public."}}