6 Answers, 1 is accepted
You can set the InputScope using the following approach (I've set it to your requested scope, but any of the InputScopeNameValues will work):
<input:RadAutoCompleteBox x:Name=
"MyAutoCompleteBox"
>
<input:RadAutoCompleteBox.Resources>
<Style TargetType=
"autoCompleteBox:AutoCompleteTextBox"
>
<Setter Property=
"InputScope"
Value=
"Number"
/>
</Style>
</input:RadAutoCompleteBox.Resources>
</input:RadAutoCompleteBox>
Let me know if you have any additional questions or concerns. Thank you for contacting Support and for choosing Telerik by Progress!
Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
the AutoCompleteTextBox is the textbox which the RadAutoCompleteBox control is internally using.
It is placed in the Telerik.UI.Xaml.Controls.Input.AutoCompleteBox namespace, so if you add the following line the code should work as expected:
xmlns:autoCompleteBox="using:Telerik.UI.Xaml.Controls.Input.AutoCompleteBox"
I hope this helps.
Regards,
Ivaylo Gergov
Telerik by Progress
Hi,
I am populating values in autocompletebox from selection made from another form. contactList is the collection of contacts selected in one of the child form.So i am assigning contactList as itemsource and Selecteditems. Its working perfectly.By doing this i am able to delete the items/contacts.
I can't assign item source of child form to autocompletebox.
One problem is , i should not allow user to enter any values in autocompletebox,but user should be able to delete contact.
Below is code.
<telerik:RadAutoCompleteBox Margin="2,0,0,0" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionMode="Multiple" Grid.Row="0" Grid.Column="0" ItemsSource="{Binding contactList,Mode=TwoWay}" SelectedItems="{Binding contactList,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
You are posting in the UI for Universal Windows Platform (UWP) forums. From your screenshots, you do not have a UWP application.
Because you're using XAML and the version of Windows I see in your sceenshot, I suspect that you're building a WPF application using UI for WPF on Windows 7. You can find the UI for WPF forums here.
When you post your question there, please add some additional information as the code you've provided is not enough to determine the ItemsSource binding problem.
Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress