Kendo Angular Grid Pager Button Title/Tooltips

1 Answer 521 Views
Grid Pager Styling
Mike
Top achievements
Rank 1
Mike asked on 14 Jul 2022, 06:14 PM
Is it possible to customize the titles/tootips and look/color for a grids pagination buttons (First, Previous, Next, Last)?  I'd like it ot matach the look and feel of other tooltips we have in our application.

1 Answer, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 18 Jul 2022, 05:21 PM

Hi Mike,

Yes, it is possible to change the title and the style of the Kendo UI Grid Pager navigation buttons.

To change the title of the buttons, use the following inputs of the CustomMessagesComponent:

Example:

<kendo-grid>
  <kendo-grid-messages
    pagerFirstPage="First page"
    pagerLastPage="Last page"
    pagerNextPage="Next page"
    pagerPreviousPage="Previous page"
  >
  </kendo-grid-messages>
</kendo-grid>



To modify the style of the buttons, use the following CSS:

.k-link.k-pager-nav {
  background: blue;
}

.k-link.k-pager-nav .k-icon {
  color: white;
}
Please make sure to set the encapsulation to ViewEncapsulation.None to apply the styles locally.


In this StackBlitz example, I have changed the title and the style of the Grid Pager navigation buttons.

I hope this helps. Please let me know if I can further assist you.

Regards,
Hetali
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid Pager Styling
Asked by
Mike
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Share this question
or