This is a migrated thread and some comments may be shown as answers.

pager info and type not working

3 Answers 347 Views
Pager
This is a migrated thread and some comments may be shown as answers.
Ting
Top achievements
Rank 1
Veteran
Ting asked on 11 Sep 2020, 07:50 PM

Hi,

I use kendo ui angular pager in my codes. However, [info] and [type] are not working. Please see attached image. 

I want to show xx of total items, and also each page I want to see numeric numbers.

<kendo-datapager
[pageSize]="pageSize"
[skip]="skip"
[total] = "total"
[type] ="numeric"
[info] ="true"
(pageChange)="onPageChange($event)">
</kendo-datapager>

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 15 Sep 2020, 09:57 AM

Hi Ting,

Thank you for the provided screenshot and code snippet.

What makes me an impression is the type property value. By default, it accepts a string value (PagerType). When using square brackets, the numeric value should have quotes, e.g.:

<kendo-datapager
...
[type] ="'numeric'"
...>
</kendo-datapager>

Without brackets the value is accepted as a string:

<kendo-datapager
...
type ="numeric"
...>
</kendo-datapager>

This behavior is Angular specific.

Regarding the info property, it seems to be working as expected on my side:

https://stackblitz.com/edit/angular-ne42vm?file=app/app.component.ts

Let me know if I am missing something.

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/.

0
Ting
Top achievements
Rank 1
Veteran
answered on 16 Sep 2020, 08:04 PM

Thank you Martin, the original codes actually worked fine. 

If I zoom out the font size, the total number will show up, if zoom in, it won't. see attached images. 

 

0
Martin
Telerik team
answered on 18 Sep 2020, 09:16 AM

Hello Ting,

Thank you for the screenshots provided.

However, I am not sure what you mean by - 'zoom out and zoom in the font size' . Are you changing the font-size CSS property of the pager numbers:

https://stackblitz.com/edit/angular-ne42vm?file=app%2Fstyles.css

Please provide some more details, ideally, a runnable demo demonstaring the issue (or update the above StackBlitz). This will help us to understand how the pager actually is used and we would be able to provide better support on this case.

Regards,
Martin
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Pager
Asked by
Ting
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Ting
Top achievements
Rank 1
Veteran
Share this question
or