Hi Experts,
I have tried your AutoCompleteBox with the following code, but it is not working. I could not get any suggesstions and the dropdown list is not showing any suggesstion list. Simply the control works like a TextBox only. Please help me, what is my wrong.
I have tried your AutoCompleteBox with the following code, but it is not working. I could not get any suggesstions and the dropdown list is not showing any suggesstion list. Simply the control works like a TextBox only. Please help me, what is my wrong.
<
Window
x:Class
=
"Interactivity_Behavior_Demo.MainWindow"
xmlns:Telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:Interactivity_Behavior_Demo.Behavior"
Title
=
"Test Demo"
Width
=
"525"
Height
=
"350"
>
<
Telerik:RadAutoCompleteBox
Name
=
"autocomp"
Loaded
=
"autocomp_Loaded_1"
Height
=
"30"
Width
=
"120"
/>
</
Window
>
public MainWindow()
{
InitializeComponent();
_Source = new ObservableCollection<
string
>() { "hello", "abc", "123" };
autocomp.ItemsSource = Source;
}
private void autocomp_Loaded_1(object sender, RoutedEventArgs e)
{
autocomp.IsDropDownOpen = true;
autocomp.AutoCompleteMode = Telerik.Windows.Controls.Primitives.AutoCompleteMode.Suggest;
autocomp.TextSearchMode = Telerik.Windows.Controls.TextSearchMode.StartsWith;
}