I can't figure out how to implement autocomplete functionality using your ComboBox.
In XAML I have:
<telerik:RadComboBox IsEditable="True" ItemsSource="{Binding ItemList}" Text="{Binding ItemText, Mode=TwoWay}"/>
In ViewModel I have:
private string _itemText;
public string ItemText
{
get { return _itemText; }
set
{
_itemText = value;
RaisePropertyChanged("ItemText");
GetItems();
}
}
private ObservableCollection<Item> _Items;
public ObservableCollection<Item> Items
{
get { return _Items; }
set
{
_Items = value;
RaisePropertyChanged("Items");
}
}
private void GetItems()
{
_service.BeginGetItems(ItemText, 0, (ar) => Items = _service.EndGetItems(ar), null);
}
And of course this doesn't work because autofill will messup ItemText, there should be some kind of SearchText property on Combobox which contains text without autofill to which I can bind to, but I have not found one.