InputScope

7 posts, 0 answers
  1. Marcin
    Marcin avatar
    4 posts
    Member since:
    May 2013

    Posted 12 Aug 2016 Link to this post

    Has anybody an idea how to provide Inputscope functionality to AutoCompleteBox (to show for example only numeric keybord on mobile device)?
  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    283 posts

    Posted 12 Aug 2016 Link to this post

    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
  3. Marcin
    Marcin avatar
    4 posts
    Member since:
    May 2013

    Posted 13 Aug 2016 in reply to Lance | Tech Support Engineer, Sr. Link to this post

    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.
  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    680 posts

    Posted 17 Aug 2016 Link to this post

    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
  5. Gratel
    Gratel avatar
    5 posts
    Member since:
    Dec 2016

    Posted 13 Dec 2016 Link to this post

    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.
  6. Sreelaskshmi
    Sreelaskshmi avatar
    4 posts
    Member since:
    Aug 2014

    Posted 5 days and 6 hours ago in reply to Lance | Tech Support Engineer, Sr. Link to this post

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

  7. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    283 posts

    Posted 4 days and 22 hours ago Link to this post

    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
Back to Top