Hi,
you have to render the DialogBox, too. Not only the Display button for it.
like this:
bc.
<?php
public function dtgConte_motif_Render($intConteId) {
.....
return $this->dlgSimpleMessage->Render(false) . $this->btnDisplaySimpleMessage->Render(false);
}
return null;
}
?>
.bc
on a side note, if you don't use the controls outside of the Render function, you should use them as simple variables, not as QForm variables.
and also you maybe want to hide the btnDisplaySimpleMessage after the dialog box is shown. In this case you could set as the ActionParameter only the $intConteId, and change your click method:
<?php
protected function btnDisplaySimpleMessage_Click($strFormId, $strControlId, $strParameter) {
// “Show” the Dialog Box using the ShowDialogBox() method
$dlgSimpleMessage = $this->GetControl('Dialog'.$strParameter);
if($dlgSimpleMessage) $dlgSimpleMessage->ShowDialogBox();
$btnDisplaySimpleMessage = $this->GetControl($strControlId);
$btnDisplaySimpleMessage->Visible = false;
}
?>
if you want to do something similar to inline edit for datagrid rows, you can check the examples site : DataGrid with inline editing
hope this helps. :)