Coder Social home page Coder Social logo

Comments (12)

kartik-v avatar kartik-v commented on May 29, 2024

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.

arogachev avatar arogachev commented on May 29, 2024

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.

kartik-v avatar kartik-v commented on May 29, 2024

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 and pageSummaryFunc 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.

arogachev avatar arogachev commented on May 29, 2024

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.

arogachev avatar arogachev commented on May 29, 2024

The problem still is not solved. I think it's somehow related with theme setting. How I can add this line?

from yii2-dynagrid.

kartik-v avatar kartik-v commented on May 29, 2024

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.

arogachev avatar arogachev commented on May 29, 2024

It's not pager.

{summary}: string, which will render the grid results summary.

from yii2-dynagrid.

arogachev avatar arogachev commented on May 29, 2024

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.

kartik-v avatar kartik-v commented on May 29, 2024

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.

arogachev avatar arogachev commented on May 29, 2024

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.

kartik-v avatar kartik-v commented on May 29, 2024

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.

arogachev avatar arogachev commented on May 29, 2024

Sorry, my bad, it was hidden because of used css. Thanks for the help.

from yii2-dynagrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.