Hi all,
I want to make a CListView in a tab which the tab number not at first.
How can I do ajax pagination on CListView, so I don’t get the page refreshing but only the CListView instead ?
this is my code for view :
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'../school/sekolahview',
'ajaxUpdate'=>true,
)); ?>
Thanks.
souabi
(Souabi)
December 25, 2010, 4:24pm
2
Hi all,
I want to make a CListView in a tab which the tab number not at first.
How can I do ajax pagination on CListView, so I don’t get the page refreshing but only the CListView instead ?
this is my code for view :
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'../school/sekolahview',
'ajaxUpdate'=>true,
)); ?>
Thanks.
I am a newby and had the same problem. Adding an id fixed it for me, for example:
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'../school/sekolahview',
'id'=>'some id'
'ajaxUpdate'=>true,
)); ?>
vihuarar
(Varangoa)
May 16, 2011, 1:15am
3
Hi… you did that?
I need help in the same topic!
I need to know how to paginate a CListView with ajax
souabi:
I am a newby and had the same problem. Adding an id fixed it for me, for example:
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'../school/sekolahview',
'id'=>'some id'
'ajaxUpdate'=>true,
)); ?>
it didnt work for me. here is my code
<?php $this->widget(‘zii.widgets.CListView’, array(
'dataProvider'=>$dataProvider,
'itemView'=>'//jobs/_view',
'id'=>'12',
'ajaxUpdate'=>true,
)); ?>
fpolli
(Frederickp)
May 20, 2012, 2:41pm
5
In the Class Reference for CListView it says that ajaxUpdate is for the id of the container to be updated. Set to False to disable Ajax. It is not a boolean field.