Grid pager does not show active page

1 Answer 207 Views
Grid Pager
Florian
Top achievements
Rank 1
Florian asked on 01 Feb 2023, 11:06 AM | edited on 01 Feb 2023, 11:07 AM

Hi

my pager in the grid component does not show the active page:

analysing the HTML there is a class k-state-selected

but this class is nowhere defined in the current default theme

"@progress/kendo-theme-default": "^5.12.0",

 

checking with the working demo from the kendo page the pager as rendered as buttons instead of li and there is a class k-selected which is also defined in the theme:

I'm working with all current versions:

"@progress/kendo-angular-buttons": "^7.0.0",
"@progress/kendo-angular-common": "^2.0.0",
"@progress/kendo-angular-dateinputs": "^6.0.0",
"@progress/kendo-angular-dropdowns": "^6.0.0",
"@progress/kendo-angular-excel-export": "^4.0.0",
"@progress/kendo-angular-grid": "^6.1.3",
"@progress/kendo-angular-icons": "^1.0.1",
"@progress/kendo-angular-indicators": "^1.1.3",
"@progress/kendo-angular-inputs": "^8.0.0",
"@progress/kendo-angular-intl": "^3.0.0",
"@progress/kendo-angular-l10n": "^3.0.0",
"@progress/kendo-angular-label": "^3.0.0",
"@progress/kendo-angular-pager": "^3.0.3",
"@progress/kendo-angular-pdf-export": "^3.0.0",
"@progress/kendo-angular-popup": "^4.0.0",
"@progress/kendo-angular-treeview": "^6.0.0",
"@progress/kendo-data-query": "^1.0.0",
"@progress/kendo-drawing": "^1.5.12",
"@progress/kendo-licensing": "^1.0.2",
"@progress/kendo-svg-icons": "^0.1.2",
"@progress/kendo-theme-default": "^5.12.0",

 

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 06 Feb 2023, 09:59 AM

Hi Florian,

Thank you for the provided details.

We recommend installing the latest versions of the Grid (v11.1.0) package and Kendo theme (v6.1.0) to benefit from the most recent bug fixes and features. 

https://www.telerik.com/kendo-angular-ui/components/installation/up-to-date/#toc-updating-to-latest-versions

Note that Angular 12 and below are no longer supported by Angular as well we Kendo UI for Angular:

https://angular.io/guide/releases#support-policy-and-schedule

We introduced some changes in v5.4.1 of the themes by updating all state class names syntax, by removing the state from the class, for example, k-state-selected is replaced with k-selected. In case you have any custom styles with this CSS class, they need to be revised and refactored. 

In these lines of words, we highly recommend updating the used versions. In case updating the Angular version to at least v13 is not an option so far, you can try downgrading the @progress/kendo-theme-default package or use custom CSS to style the selected page:

    template: `
        <kendo-grid ...>
        ...
        </kendo-grid>
    `,
    encapsulation: ViewEncapsulation.None,
    styles: [
        `
            .k-pager-numbers .k-state-selected,
            .k-pager-numbers .k-state-selected:hover {
                background-color: red;
            }
        `
    ]

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid Pager
Asked by
Florian
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or