Yii Framework Forum: Render cgridview using EJuiDlgsColumn - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Render cgridview using EJuiDlgsColumn

#1 User is offline   reburg 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 114
  • Joined: 15-January 13

Posted 08 January 2018 - 12:38 PM

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.
Greetings from Austria
Ferdinand
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users