Alguém tem ideia de selecionar o datagrid e Já tentei esta função não funcionou. public function onShowDetail( $param ) { // get row position $pos = $this->datagrid->getRowIndex('code', $param['key']); // get row by position $current_row = $this->datagrid->getRow($pos); $current_row->style = "background-color: #8D8BC8; color:white; text-shadow:none"; // create a new row $row = new TTableRow; $row->style = "background-color: #E0DEF8"; $row->addCell(''); $cell = $row->addCell('In this space, you can add any detail<br> content about the selected record'); $cell->colspan = 4; $cell->style='padding:10px;'; // insert the new row $this->datagrid->insert($pos +1, $row); } Problema solucionado, tem que ser colocado apos onReload, no reload sera carregado o datagrid novamente. |