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

Possible Bug - pagination getPageCount() always return 0 #152

Closed m26404020 closed 7 years ago

m26404020 commented 7 years ago

This makes the summary to be like this: Showing 1-10 of 0 items.

I'm using SqlDataProvider for my data provider

kartik-v commented 7 years ago

Duplicate to #151.

You must configure totalCount property of the SqlDataProvider to the total record count value. This is required for SqlDataProvider as highlighted in Yii Docs and you should be able to see that in Dynagrid output (confirmed as tested by me separately).