cgridview filter and javascript

i have this in main layout




$(document).ready(function() {

  $(".propColumn").on("click", function(event) {

     event.stopImmediatePropagation();

     $('#fdkCreate').modal();

     $('.modal-body').load("<?php echo Yii::app()->createUrl('proprietario/detailpartial') ?>/" + $(this).text());

 });



see

http://casas.papamistas.com/index.php/visita/test

please click cells with red bottom right corner and then sort and try to click again.

Apreciate your help.

thanks

What U need to do is to repeat same js as U have for document.load in afterAjaxUpdate in CGridView configuration.

Problem is that now you have js on page and when any ajax call is made for search or filter U don’t have events attached.

Please check:

http://www.yiiframework.com/doc/api/1.1/CGridView#afterAjaxUpdate-detail

1 Like