Here is my delema:
I am using eFancyBox extension with the update/view buttons on my gridview.
And although I have (‘scrolling’=>‘no’,) set it still pulls up multiple records and includes the scroll <Left and Right > I only want a single record.
What can I do to achieve this?
array(
'class'=>'CButtonColumn',
'template'=>'{update}{view}{delete}',
'headerHtmlOptions' => array('class' => 'textCenter', 'style' => ""),
'buttons' => array(
'view'=>array(
'url'=>'$this->grid->controller->createUrl("Thridpartynotifiers/view", array(
"id"=>$data->primaryKey)
)',
'options'=>array(
'height'=>'20px',
'width'=>'20px',
'rel'=>'viewdeviations2','class'=>'fancy'),
),
'update' => array(
'options'=>array('rel'=>'updatedeviations2','class'=>'fancy'),
'url'=>'$this->grid->controller->createUrl("Thridpartynotifiers/update", array(
"id"=>$data->primaryKey,
"pole_id"=>'.$model->id.')
)',
),
),
'deleteButtonUrl'=>'Yii::app()->createUrl("/Thridpartynotifiers/delete/", array(
"id"=>$data->primaryKey)
)',
'deleteConfirmation'=>"js:'Do you really want to delete record with ID
'+$(this).parent().parent().children(':nth-child(2)').text()+'?'"
),
),
$this->widget('application.extensions.fancybox.fancybox.EFancyBox', array(
'target'=>'a[rel=updatedeviations1]',
'config'=>array(
'type' => 'ajax',
'scrolling'=>'no',
'min-width' => '960px',
'min-height' => '1600px',
'height' =>'110%',
'width' =>'90%',
'autoDimensions' => false,
'onClosed'=>"js:function(){parent.location.reload(true);}",
),
));