InputScope

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

    Posted 12 Aug 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
    138 posts

    Posted 12 Aug 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. DevCraft banner
  4. Marcin
    Marcin avatar
    4 posts
    Member since:
    May 2013

    Posted 13 Aug 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.
  5. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 17 Aug 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
Back to Top
DevCraft banner