Yii Framework Forum: Clistview Afterajax Update - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Clistview Afterajax Update Rate Topic: -----

#1 User is offline   kfahmi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 81
  • Joined: 19-March 12

Posted 06 November 2012 - 11:04 PM

hey, im using an extension quickdlgs,


I Put that quickdlgs button inside clistview,

here is the code (clistview) i tried put afterajaxupdate, maybe that was wrong or missing something.
$this->widget('zii.widgets.CListView', array(
        'afterAjaxUpdate'=>'function(){$("#yw2-frame").dialog("open");}',
        'id'=>'listPost-grid',
        'template' =>' {summary}{items}{pager}',
        'summaryText' =>'{count} post(s)',  
	'dataProvider'=>$modelPost,
	'itemView'=>'//post/_view',
));


then i put the quickdlgs extension Button inside the _view

  EQuickDlgs::iframeButton(
                        array(
                            'controllerRoute' => '/post/reply',
                            'actionParams' => array('id'=>$data->id_post),
                            'dialogTitle' => 'Reply -'.$data->idPost->notes,
                            'dialogWidth' =>550,
                            'dialogHeight' =>250,
                            'openButtonText' => 'Reply',
                            'closeButtonText' => 'Close',
                            'closeOnAction' => true, //important to invoke the close action in the actionCreate
                            'refreshGridId' => 'listPost-grid',



The problem is, that extension cannot works/show the dialog(or popups) after Clistview perform ajaxupdate (refresh grid with ajax),

anyone, please help me :(.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users