Double Click Event On Cgridview

Hi All,

I’m new here and I will be grateful for any indices.

I get double click event working on CGridView until I sort the grid by clicking on the header.

It looks like all events were cleared for table row after sorting.

Here is my code in partial rendered view:


Yii::app()->clientScript->registerScript('row_dblclick', "

    $('table > tbody > tr').on('dblclick', function(){





<?php $this->widget('zii.widgets.grid.CGridView', array(








                         //idx=$.fn.yiiGridView.getSelection(id); // is depracated

                         idx= $("#" + id).yiiGridView("getSelection");

                         if(idx > 0 && idx !="")