Abhoryo/APYDataGridBundle — pull request #299 by pierredup (2012-10-30 11:59:53+00:00)
Title: Update grid to allow mass actions to be executed on selected rows

This commit allows you to execute a mass action on a filtered grid.

When adding the Mass Action, you can call ````$grid->getRows()```` to get the selected rows.

E.G:

$action = new MassAction('Action1', function($actionKeys, $actionAllKeys, $session, $params) use ($grid) {
if($actionAllKeys)
{
$rows = $grid->getRows()
// or
$rows->getRawData()
}

This will return all the rows that was selected with the 'Select All' link.