This is a migrated thread and some comments may be shown as answers.

InputScope

6 Answers 133 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcin
Top achievements
Rank 1
Marcin asked on 12 Aug 2016, 07:06 AM
Has anybody an idea how to provide Inputscope functionality to AutoCompleteBox (to show for example only numeric keybord on mobile device)?

6 Answers, 1 is accepted

Sort by
0
Marcin
Top achievements
Rank 1
answered on 12 Aug 2016, 07:12 PM
Hi Marcin,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Marcin
Top achievements
Rank 1
answered on 13 Aug 2016, 08:17 AM
Thanks for answer but what is the autoCompleteBox:AutoCompleteTextBox object, and what is autoCompleteBox namespace? Is it your own implementation of object derived from RadAutoCompleteTextBox? RadAutoCompleteBox doesn`t provide InputScope property directly.
0
Marcin
Top achievements
Rank 1
answered on 17 Aug 2016, 12:47 PM
Hello,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Marcin
Top achievements
Rank 1
answered on 13 Dec 2016, 02:40 PM
When you use controls such as text boxes in your Windows Phone application, the user enters data by using the on-screen keyboard. Depending on the type of data the user is entering, the input scope of default keyboard may not be the best choice. You can change the input scope of the on-screen keyboard to one of many built-in options. When you change the input scope of the keyboard, you can make it much faster and easier for users to enter data in your application.
0
Marcin
Top achievements
Rank 1
answered on 21 Apr 2017, 06:35 AM

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}">

0
Marcin
Top achievements
Rank 1
answered on 21 Apr 2017, 02:28 PM
Hi Sreelaskshmi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteBox
Asked by
Marcin
Top achievements
Rank 1
Answers by
Marcin
Top achievements
Rank 1
Share this question
or