I have a RadComboBox that loads 10 items at a time (from a couple hundred items). For simplicity sake, the datasource is a List<Person>
where:
public class Person
{
public string Name { get; set; }
public int ID { get; set; }
}
My service and repository methods return the List<Person>
after it has already been sorted (by Name) and paged (10 items per request). My problem that somewhere within the data is the Name of the "logged in" user (I have the ID for that user). I need to show that person at the top of the list (first page, first item.)
What is the best way to go about this?
I have thought of the following:
- Show 1-11 instead of 1-10 on the first set, throwing the "logged in" user at the top
- Omit the logged in user from the query and add them in after