jquery.prettyPhoto.js not working in pagination

Hi all, i have problem with my software. I have used jquery.prettyPhoto.js for my picture gallery but it isn’t working after pagination. Do you have solution for me ?

i have similar issue… jquery on photo is not working after clicking on next page.

My guess is that you’ll have to use the afterAjaxUpdate property of your CGridView to reassign the plugin to your gallery selectors, because technically the pictures shown after pagination are new DOM nodes, so the plugin can’t “see” them unless you tell it what to “see” :)

Anyway, it’d look like:

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



    'afterAjaxUpdate'=>"js:function(id, data) {

                             // using the standard prettyPhoto syntax







thanks a ton :) it is really working fine.