Alphabetic pages for Pager Control

1 Answer 16 Views
Pager
Kelly
Top achievements
Rank 2
Kelly asked on 05 Aug 2022, 04:06 PM
Is there a way to have the pager control display alphabetic pages instead of numeric? I would like to provide to my users a contacts book where it is displayed alphabetically based on contacts name. If not this might be a suggestion for a new control. I am thinking a modern day rolodex.

1 Answer, 1 is accepted

Sort by
0
Nadezhda Tacheva
Telerik team
answered on 10 Aug 2022, 01:28 PM

Hi Kelly,

Generally speaking the Pager is designed to cover cases in which the data collection is split into pages where each page will list an equal set of items. In the described scenario, it is more likely that the separate alphabetical pages contain different count of items which is a use case that the Pager could not cover.

That said, the scenario should rather be handled with a custom approach. You can, for example, filter the available items by the letter their name starts with.

 If we target the Grid, for instance, you can:

  • Add a Toolbar and render buttons for the letters
  • Handle the button clicks to add FilterDescriptor through the Grid State. Thus, you can filter the Grid by the corresponding button value and filter operator "StartsWilth".

You may also find the Search Grid on Button Click knowledge base article useful.

I hope the above information will help you move forward with your application. Please let me know if further questions are raised.

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.

Tags
Pager
Asked by
Kelly
Top achievements
Rank 2
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or