function initiateEditor()
{
...
// Modify row set: edit on dblClick
$this->Editor->setConfig('modifyRowSets',array(&$this,'rowsetEditOnDblClick'));
}
function rowsetEditOnDblClick($rowSet,$rowInfo,$rowNum) {
$rowSet['onDblClick'] = $this->mateInstances[0].".editRow('".$rowInfo['id']."');";
return $rowSet;
}
public function getRowHtml($row,$numRows)
{
$rowInfo = array();
$rowSets = array();
$rowSets['id'] = $this->instanceName.'row_'.$numRows;
//$rowSets['class'] = 'ajaxRow';
//$bgColor = ($numRows % 2) == 0 ? $this->evenRowColor : $this->oddRowColor;
//$rowSets['bgcolor'] = $bgColor;
$rowSets['class'] = ($numRows % 2) == 0 ? 'even' : 'odd';
$cbInfo = $this->getCbInfo($row,$numRows);
$html = $cbInfo['cb_html'];
if($cbInfo['has_active_cb']) {
$rowSets['onclick'] = $this->instanceName.'.rowClicked(\''.$numRows.'\');';
$rowSets['ondblclick'] = $this->instanceName.'.editInPlace(\''.$row[$this->primaryKeyCol].'\',\''.$numRows.'\');';
Users browsing this forum: No registered users and 4 guests