php - Yii Framework: Pagation Callback Method -


i have clistview on page , every time navigate page 2 or other page want call method formats view. not seem work every time navigate page.

the javascript method want call called updatedivs()

here list view widget

$this->widget('zii.widgets.clistview', array(                                     'dataprovider' => $dataprovider,                                     'itemview' => '_customview',                                     'id' => 'bannerslist',                                     'ajaxupdate' => true,                                     'afterajaxupdate' => ' updatedivs()',                                     'enablepagination' => true,                                     'itemscssclass' => 'row banners-list',                                     'summarytext' => 'total ' . $pages->itemcount . ' results found',                                     'pager' => array(                                         'header' => '',                                         'prevpagelabel' => '<',                                         'nextpagelabel' => '>',                                     ),                                 )); 

please try test, should works well.

'afterajaxupdate' => 'js:function(id,data){alert("test");}'

so if code works perfect should search problem in updatedivs() function


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -