When scrolling down dyanamicaly boot data in cgridview yii

In yiiI use a Cgridviewpagination widget . Instead, I need to dynamically load data by scrolling down. Is there an extension?

This is the widget that I am using.

<?php 
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'leave-approve-grid',
'itemsCssClass'=>'table table-bordered table-condensed table-hover table-striped dataTable',
'filter'=>$model,
'dataProvider'=>$model->approve_search(),
'enablePagination' => true,    
'pagerCssClass'=>'dataTables_paginate paging_bootstrap table-pagination',
'pager' => array('header'=>'','htmlOptions'=>array('class'=>'pagination')),
'columns' => array(             
            array(name=>'type_id', 'value'=>'$data["leave_type"]','header'=>'Leave type','filter'=>CHtml::activeDropDownList($model,'type_id',CHtml::listData($model->SelectAllLeaveType(),'type_id','type'),array('prompt'=>'All'))),
            array(name=>'staff_name','value'=>'$data["staff_name"]','header'=>'Staff Name'),
),
)
);
+4
source share
1 answer

No, Yii gridview is not capable of smart rendering . You should use jquery data grid plugins plugins that have this feature. I used the jqGrid plugin and it is a very good data grid that has this function and many other functions.

+1

Source: https://habr.com/ru/post/1675129/


All Articles