Hi, I have just begun using RadAutoCompleteView, and now I am looking for a way to set its selected items (tokens) in code-behind when I am going to open my entity's detail page in edition mode.
P.s. I am not using MVVM architecture and setting my control's ItemsSource programmatically:
Class:
public class Activity
{
public string Id { get; set; }
public List<string> ProductIds { get; set; }
}
ItemsSource: SomeListOfProducts.
What I'm going to do:
For each productId in ProductIds, I add a token to my RadAutoCompleteView that: token = SomeListOfProducts.Single(x => x.Id == productId).