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

Use initial letters for paging

1 Answer 84 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
David Liebeherr - rent-a-developer
Top achievements
Rank 1
David Liebeherr - rent-a-developer asked on 04 Dec 2013, 11:11 PM
Hello,

Is it possible to show initial letters instead of numbers in the RadDataPager?

I have a RadGridView where I show a list of contacts (with properties like FirstName, LastName, FullName, Company, etc...).

I would like to paginate the contacts based on the first letter of the last name instead of a fixed page size and show the initial letter in the data pager instead of page numbers.
So basically I want to group the contacts by the first letter of the LastName property and be able to select a group in the data pager and then show the contacts of that group in the grid view.
So all contacts with the same initial letter in the first name should appear on the same "page".

It would be very nice to also be able to only show those initial letters for which contacts actually exists.

BTW: I am using a QueryableEntityCollectionView to connect the pager and grid view to a entity framework data context.

Thank you!

Sincerely yours,
David

1 Answer, 1 is accepted

Sort by
0
David Liebeherr - rent-a-developer
Top achievements
Rank 1
answered on 05 Dec 2013, 12:39 AM
Hello,

I have found an implementation for this scenario here:
http://blogs.telerik.com/blogs/10-04-11/implementing-logical-paging-with-raddatapager-for-wpf-and-silverlight.aspx

It's actually quite simple and straight forward.
Tags
DataPager
Asked by
David Liebeherr - rent-a-developer
Top achievements
Rank 1
Answers by
David Liebeherr - rent-a-developer
Top achievements
Rank 1
Share this question
or