kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

Personalize Grid Configuration - PageSize #202

Closed warezbg closed 5 years ago

warezbg commented 5 years ago

Prerequisites

Steps to reproduce the issue

  1. Create ActiveDataProvider with \yii\db\Query
  2. In "Personalize Grid Configuration" add "Page Size" 12 for example and save.

Expected behavior and actual behavior

After refreshing, page size is 20 per page (default value).

I was expecting page size to be 12 per page. The problem comes from calling method 'getAttributeLabel' wich call dataprovider method 'getModels' before method 'applyPageSize'.

Environment

Browsers

Operating System

Libraries

Isolating the problem

ittaskeu commented 5 years ago

` /**