listpagerajax cListPager With Ajax Update

  1. Requirements
  2. Usage

This is extension inspired by "mypager"

Requirements

...requirements of using this extension (e.g. Yii 1.1 or above)...

Usage

using simple 4 steps you can change your pager. Please follow the steps 1step: Import Extension by adding following line to your application configuration:

'import'=>array(
    'application.extensions.*',
 'application.extensions.AjaxList.AjaxList'
 ),

step2: add following code at the top of your view file

$dataProvider = $model->search();
$pageSize = Yii::app()->user->getState("pageSize",@$_GET["pageSize"]);
$dataProvider->getPagination()->setPageSize($pageSize);

step3: change the data Provider of your grid

'dataProvider'=>$dataProvider,// it's before $dataProvider = $model->search();

step4: This is final step. You just need to change the pager class to AjaxList

'pager'=>array(
        'class'=>'AjaxList',
        'maxButtonCount'=>25,
        'header'=>''
	),

Demo ScreenShot:- AjaxListPager

This what we need to do to.

Let me know for any modifications....

9 0
12 followers
742 downloads
Yii Version: 1.1
License: LGPL-3.0
Category: User Interface
Developed by: Shiva Prasad (KTree )
Created on: Mar 22, 2012
Last updated: 5 years ago

Downloads

show all

Related Extensions