<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'message-grid',
//'selectionChanged'=>'js:function(id){location.href = "'.$this->createUrl('view').'/id/"+$.fn.yiiGridView.getSelection(id);}',
'selectionChanged'=>'function(id){location.href = "'.$this->createUrl('view').'&id="+$.fn.yiiGridView.getSelection(id)+"&f=s";}',
//'dataProvider'=>$model->sentitem(),
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
array(
'class'=>'CCheckBoxColumn',
'id'=>'chk',
'selectableRows'=>'2',
//'htmlOptions'=>array('width'=>'40px'),
),
), ));
我已经编写了通过选择更改单击的代码我正在尝试通过 jquery dbclick 函数访问 id,我不知道如何使用在 dbclick 中更改的选择来获取 id