Render cgridview using EJuiDlgsColumn

Hi,

I am using the extension quickdlgs. I replaced the standard buttonColumn of CGridView with EJuiDlgsColumn class. Normally this works great.

But in my view.php I tried to call additionally a gridview that displays related records connected in the model definition.

This is my controller as usual:


public function actionView($id)	{

  $modelWerke = New Werke('search');

  $modelWerke->unsetAttributes();

  if ( isset($_GET['Werke']) )

     $moddelWerke->attributes=$_GET['Werke'];

     $WerkeData = $modelWerke->search("Heft_Id=".$id);

     $this->layout='iframe';

     EQuickDlgs::render('view',array(

	'model'=>$this->loadModel($id),

            ...

	));

}

This is my view.php:




$this->Widget('zii.widgets.CDetailView', array(

   'data'=>$model,

   'attributes'=>array(

      'Id',

      'Titel',            

      ...

   ),

)); 


// if I remove the following lines of code, everything is ok, the view is shown in the JQueryUI dialog.

$this->renderPartial(

  '/werke/_admin',

     array(

	'model'=>$modelWerke,

        ...

I get this javascript error:


cannot call methods on dialog prior to initialization; attempted to call method 'open'

If I select the link behind the view button of the gridView and copy it into the browser’s address bar, the page is displayed (the CSS is not ok, but all data are present).

The view-button link is correct. But the target page obviously cannot be displayed inside the JQueryUI dialog.

Why not?

Thank you for help.