Yii Framework Forum: [Ask] Clistview Afterajaxupdate - Yii Framework Forum

Jump to content

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

[Ask] Clistview Afterajaxupdate AfterAjaxUpdate Rate Topic: -----

#1 User is offline   kfahmi 

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

Posted 21 September 2012 - 04:47 AM

Situasi seperti ini master :") ,,

saya memiliki Clistview :

CLISTVIEW
 $this->widget('zii.widgets.CListView', array(
        'id'=>'lib-grid',
        'afterAjaxUpdate'=>' INI diisi apa yah :(',
       'template' =>' {summary}{items}{pager}',
        'summaryText' =>'{count} item(s)',  
	'dataProvider'=>$model,
	'itemView'=>'_view',
)); 


_view (didalam view ini terdapat script JS dengan extension Jpopwindow)
<div class="view">
	<b><?php echo CHtml::encode($data->getAttributeLabel('url')); ?>:</b>
        <?php 
               $this->widget('ext.popup.JPopupWindow', array(
                'content'=>$data->url,
                'url'=>'http://'.$data->url,        
                'htmlOptions'=>array('title'=>$data->url),
                'options'=>array(
                'height'=>500,
                'width'=>800,
                'top'=>50,
                'left'=>50,
                 ),
                )); 
               ?><!-- popup -->
	<br />

</div>



Nah kendalanya, setiap ane abis melakukan Klik ke Paging clistview atau Ane input dan melakukan refresh widget pakai ajax clistviewnya, Script popup didalam _view.php itu jd gak fungsi..
setau ane kayanya harus pake afterajaxupdate, tapi di isi apa yah??

ane untuk script JS popupwindownya pake JPOPUP
http://www.yiiframew...xtension/jpopup


Hidup YII :)
0

#2 User is offline   kfahmi 

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

Posted 21 September 2012 - 10:20 AM

View Postkfahmi, on 21 September 2012 - 04:47 AM, said:

Situasi seperti ini master :") ,,

saya memiliki Clistview :

CLISTVIEW
 $this->widget('zii.widgets.CListView', array(
        'id'=>'lib-grid',
        'afterAjaxUpdate'=>' INI diisi apa yah :(',
       'template' =>' {summary}{items}{pager}',
        'summaryText' =>'{count} item(s)',  
	'dataProvider'=>$model,
	'itemView'=>'_view',
)); 


_view (didalam view ini terdapat script JS dengan extension Jpopwindow)
<div class="view">
	<b><?php echo CHtml::encode($data->getAttributeLabel('url')); ?>:</b>
        <?php 
               $this->widget('ext.popup.JPopupWindow', array(
                'content'=>$data->url,
                'url'=>'http://'.$data->url,        
                'htmlOptions'=>array('title'=>$data->url),
                'options'=>array(
                'height'=>500,
                'width'=>800,
                'top'=>50,
                'left'=>50,
                 ),
                )); 
               ?><!-- popup -->
	<br />

</div>



Nah kendalanya, setiap ane abis melakukan Klik ke Paging clistview atau Ane input dan melakukan ajaxupdate widget clistviewnya, Script popup didalam _view.php itu jd gak fungsi..
setau ane kayanya harus pake afterajaxupdate, tapi di isi apa yah??

ane untuk script JS popupwindownya pake JPOPUP
http://www.yiiframew...xtension/jpopup


Hidup YII :)


Tolong saya master :(
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