Mariusz W., on 10 June 2012 - 04:35 AM, said:
Hi,
I think it can be fixed by some javascript.
First add some id to your link.
Than write some javascript that will unbind "click" event on this link.
You may have right that yiigridview.js set "click" event that send ajax request.
I can't test it now so you could try this.
My Javascript is only so-so, but I tried the following:
Yii::app()->clientScript->registerScript(__CLASS__, "
$('#test1').unbind('click');
");
and
'header' => CHtml::link("test",array("user/create"), array('id'=>'test1')),
but I'm having the same issue.
I also tried .unbind(); and fiddled around with the CCLientScript::POS_* but nothing seems to work.
Any tips?