Highslide and fancybox extension working well on page 1, but not working on the next page (2,3,…)
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'loc-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
array(
'header'=>'No.',
'value'=>'$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1', // row is zero based
'htmlOptions'=>array('width'=>'25','style'=>'text-align:right;'),
),
array('name'=>'loc_picture',
'type'=>'html',
'header'=>'Picture',
'value'=> 'CHtml::link(CHtml::image(Yii::app()->request->baseUrl.$data->loc_picture, "image", array("width"=>30)), Yii::app()->request->baseUrl.$data->loc_picture, array("class"=>"highslide"))',
'htmlOptions'=>array('width'=>'40','style'=>'text-align:center;'),
),
array('name'=>'loc_picture',
'type'=>'raw',
'header'=>'Picture',
'value'=> 'CHtml::link(CHtml::image(Yii::app()->request->baseUrl.$data->loc_picture, "image", array("width"=>30)), Yii::app()->request->baseUrl.$data->loc_picture, array("rel"=>"myrel"))',
'htmlOptions'=>array('width'=>'40','style'=>'text-align:center;'),
),
),
));
$this->widget('application.extensions.fancybox.EFancyBox', array(
'target'=>'a[rel="myrel"]',
'config'=>array(
'scrolling' => 'yes',
'titleShow' => true,
),
)
);
Any sugestion??