Hi
I need to implement RadComboBox Autocomplete after 2 chars entered..
After I enter the second char it removes the first char and shows the popup (see attachment).
Any ideas how to handle this ?
Codebehind:
1.
private void RadComboBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
2.
{
3.
var combo = sender as RadComboBox;
4.
if (!combo.IsDropDownOpen && combo.Text?.Length >=1)
5.
{
6.
combo.IsDropDownOpen = true;
7.
}
8.
}
XAML:
01.
<
telerik:RadComboBox
ItemsSource
=
"{Binding PickTickets}"
02.
DisplayMemberPath
=
"PickTicketIdentity"
03.
EmptyText
=
"Please select a pick ticket"
<br>
04.
IsEditable="True"
05.
IsFilteringEnabled="True"
06.
TextSearchMode="Contains"
07.
CanAutocompleteSelectItems="False"
08.
StaysOpenOnEdit="True"
09.
SelectedItem="{Binding SelectedPickTicket}"
10.
KeyDown="RadComboBox_KeyDown"/>