src/Forms/GridField/GridFieldDetailForm_ItemRequest.php
public function doNext($data, $form)
    {
        $this->getToplevelController()->getResponse()->addHeader('X-Pjax', 'Content');
        $link = $this->getEditLink($this->getNextRecordID());
        return $this->redirect($link);
    }
public function doNext($data, $form)
    {
        $this->getToplevelController()->getResponse()->addHeader('X-Pjax', 'Content');
        $link = $this->getEditLink($this->getNextRecordID());
        return $this->redirect($link);
    }
public function doNext ( $ data , $ form ) { $ this -> getToplevelController ( ) -> getResponse ( ) -> addHeader ( 'X-Pjax' , 'Content' ) ; $ link = $ this -> getEditLink ( $ this -> getNextRecordID ( ) ) ; return $ this -> redirect ( $ link ) ; }
Goes to the next record
@param  array $data The form data
@param  Form $form The Form object
@return HTTPResponse
Goes to the next record