function fetchRows($args, $request)
{
// Render the rows.
$this->setFirstDataColumn();
$elements = $this->getGridDataElements($request);
$renderedRows = $this->renderRowsInternally($request, $elements);
$json = new JSONMessage();
$json->setStatus(false);
if ($renderedRows) {
$renderedRowsString = null;
foreach ($renderedRows as $rowString) {
$renderedRowsString .= $rowString;
}
$json->setStatus(true);
$json->setContent($renderedRowsString);
}
$this->callFeaturesHook('fetchRows', array('request' => &$request, 'grid' => &$this, 'jsonMessage' => &$json));
return $json;
}