Unplanned
Last Updated: 13 Dec 2021 17:43 by ADMIN
Brian
Created on: 15 Oct 2021 23:08
Category: UI for Blazor
Type: Feature Request
5
Allow pager text customization

Allow "items per page" and "1 - X of Y items" on the pager configurable or even allow them to be hidden/removed.

On mobile devices the telerik pager takes up too much room and needs to be more responsive. I'm already aware of this feature request: https://feedback.telerik.com/blazor/1442883-responsive-layout-for-the-pager

But I would like to take it a step further and be capable of customizing/removing the text.

Add the following Parameters to the TelerikPager:

[Parameter] public bool ShowItemsPerPageText { get; set; } = true;

[Parameter] public bool ShowXofYItemsText{ get; set; } = true;

<TelerikPager ShowItemsPerPageText="false" />

<TelerikPager ShowXofYItemsText="false" />

 

 

In my opinion this looks better

 

==============

ADMIN EDIT

==============

In the meantime, you can change the pager text through localization. It is important to keep the same number of placeholders, however, so that the string.Format() call it is used in will not throw.

This strings are behind the following keys:

  • "items per page" - key: "Pager_ItemsPerPage"
  • "1 - X of Y items" -  key: "Pager_Display" . Default value is "{0} - {1} of {2} items".
2 comments
ADMIN
Nadezhda Tacheva
Posted on: 13 Dec 2021 17:43

Hi Brian,

After further considerations, we have decided to treat the current request as a separate one to also cover scenarios for customization of the pager text apart from removing it.

That said, I am marking its status as "Unplanned", indicating it is a valid feature that is not scheduled for implementation yet. I also added your vote to increase its popularity as we are prioritizing the feature requests implementation based on the community interest and demand.

Still, when working on the Responsive layout for the pager, we will consider covering the scenario for removing the pager text on small devices but further customization will be part of this separate feature request. The best way to keep in track with both is to follow them, so you will be notified via email on status changes.

Currently, you can customize the text through localization - I have added some details in the admin edit of the post.

Regards,
Nadezhda Tacheva
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
ADMIN
Nadezhda Tacheva
Posted on: 22 Oct 2021 16:48

Hello Brian,

Indeed, being able to remove the text would be nice and useful in order to ensure better look of the Pager on small devices. Thank you for sharing your suggestion on how such functionality could be implemented! We will also consider covering this scenario when working on the responsive layout for the pager.

That said, I will now mark this thread as a duplicate of the previously opened one (Responsive layout for the pager), so they are linked and your feedback will also be associated with the planned feature.

I see that you already voted for it and you can also follow it (in case you haven't) to receive email updates on status changes.

Regards,
Nadezhda Tacheva
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.