Yii Framework Forum: Clistview - Yii Framework Forum

Jump to content

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

Clistview help Rate Topic: -----

#1 User is offline   kfahmi 

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

Posted 28 November 2012 - 04:30 AM

hallo..

i have a listview named Listpost-grid

$this->widget('zii.widgets.CListView', array(
        'id'=>'listPost-grid',
        'afterAjaxUpdate'=>'function(){'.$reply.'}',
        'template' =>' {summary}{items}{pager}',
        'summaryText' =>'{count} post(s)',  
	'dataProvider'=>$modelPost,
	'itemView'=>'//post/_view',
));




I want to refresh it continous every xx seconds and automaticaly. anyone please help me.

Thanks before :)
0

#2 User is offline   LastDay 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 06-March 11
  • Location:Russia

Posted 28 November 2012 - 11:22 AM

Hello, haven't tested, but try this:


var intervalBetweenUpdates = 10000;

setTimeout(function(){
   $.fn.yiiListView.update('listPost-grid');
}, intervalBetweenUpdates);


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