Comments (12)
There's nothing wrong... read docs for page summary ... showPageSummary
just enables the page summary row for display.
You need to set what you want to display in page summary for each grid DataColumn. Read docs for DataColumn - check the pageSummary
and pageSummaryFunc
properties within each column setting.
from yii2-dynagrid.
I actually want to display summary of records on this page / total. How I can do that? Can't find it in the docs and seems like it's disabled by default.
from yii2-dynagrid.
Check my comment before
You need to set what you want to display in page summary for each grid DataColumn. Read docs for DataColumn - check the
pageSummary
andpageSummaryFunc
properties within each column setting.
Check the grid demo page if you need the code example of page summary - check the configuration for the grid columns which have the total/summary enabled.
from yii2-dynagrid.
No, I actually want to show this: Showing 1-10 of 20 items
. Can't find option for that and it's disabled by default. Sorry that I didn't mention these details earlier.
from yii2-dynagrid.
The problem still is not solved. I think it's somehow related with theme
setting. How I can add this line?
from yii2-dynagrid.
What you are talking about is not the page summary but the pagination links. You may check the core yii grid docs. This is rendered using the {summary}
tag .
The default grid theme renders it in the panel. If you are not seeing it you may have chosen a different template/theme. Your grid template must have the {summary}
tag somewhere to render this.
In general I would suggest reading the docs thoroughly. Read about layout templates in the yii2-grid docs.
from yii2-dynagrid.
It's not pager.
{summary}
: string, which will render the grid results summary.
from yii2-dynagrid.
I tried to apply settings from the demo (except columns
), but this line is not shown: Showing 1-10 of 20 items
, while in demo it's shown.
from yii2-dynagrid.
If you are using dynagrid - it will depend on what theme you are using. If you are using the default theme as in the demo - you should be able to see.
from yii2-dynagrid.
Yes, i'm using the same exact theme: 'theme' => 'panel-info'
, gridOptions
are the same too. The summary still is not shown.
from yii2-dynagrid.
Note that yii will show pagination summary only if number of records exceed ONE PAGESIZE.
So if you have 5 records and your pagesize is 10 you will not see the page summary.
from yii2-dynagrid.
Sorry, my bad, it was hidden because of used css. Thanks for the help.
from yii2-dynagrid.
Related Issues (20)
- Composer install error HOT 1
- Dynagrid Floating Header blocks Date Picker HOT 1
- Correct grid pagination assignment HOT 4
- Save columns width in DB HOT 1
- The '' module MUST be setup in your Yii configuration file. HOT 4
- How to extend the class kartik\dynagrid\DynaGrid? HOT 1
- In Personalize Grid Configuration, duplicate "saving" after multipe click in apply HOT 1
- Enable Cache on DynaGridStore HOT 2
- How to check if a column is visible to the current user HOT 2
- CraftCMS - Twig Template HOT 1
- Personalize Grid Configuration Columns Drag and Drop Fails in Mobile Browsers HOT 2
- Feature Request - Allow for multiple stored dynagrid configurations HOT 1
- thrieufilter - StateBehavior don't work HOT 1
- Enhancements to support Bootstrap v5.x
- PHP8.1 strtolower error with null value
- defaultPageSize overrides dataProvider pageSize setting
- Enhance Dynagrid layout parts rendering to prevent wrong Bootstrap 5 plugin initializations. HOT 3
- Save/Edit Grid filter and sort has UI issues HOT 1
- Sort and Filter delete modals are hidden HOT 2
- array_sum(): Addition is not supported on type string when using showPageSummary HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-dynagrid.