Based on the article here, it says we can customize the Pager template:
https://www.telerik.com/kendo-angular-ui/components/grid/paging/#toc-pager-template
Is there a way i can change the ICONs of the <kendo-pager-prev-buttons> or <kendo-pager-next-buttons> ?
3 Answers, 1 is accepted
0
Preslava
Telerik team
answered on 26 May 2020, 07:18 AM
Hello Junfeng,
The default arrow icons of the Grid Pager can be changed by setting ViewEncapsulation to None and then overwriting the styles responsible for the rendered icons.
I have modified one of our documentation examples in stackblitz, by using our font icons:
I hope this helps. Let me know should there be further questions.
Regards,
Preslava
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.
I have another question, is it possible to remove the icon and change it something else like text ? i have a requirement that needs it to be a text and style it.
0
Preslava
Telerik team
answered on 27 May 2020, 09:04 AM
Hello Junfeng,
For this scenario, I would suggest to use a template with the PagerTemplateDirective. Thus, it would be possible to customize the entire content of the pager, as per requirements.
I hope this helps. Let me know should there be further questions.
Regards,
Preslava
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.