public function getRowPrototype($row)
{
try {
$primaryValue = $this->getProperty($row, $this->getPrimaryKey());
} catch (\Exception $e) {
$primaryValue = NULL;
}
$tr = \Nette\Utils\Html::el('tr');
$primaryValue ? $tr->class[] = "grid-row-{$primaryValue}" : NULL;
if ($this->rowCallback) {
$tr = call_user_func_array($this->rowCallback, [$row, $tr]);
}
return $tr;
}