RadMaskedInput Value

2 posts, 0 answers
  1. codeputer
    codeputer avatar
    46 posts
    Member since:
    Apr 2007

    Posted 25 Oct Link to this post

    Hi,

     

    RadMaskedInput does not have any properties of Value or Text?

    And why the Displayed only Get?

    "DisplayedText: Gets the displayed text.(Read-only)"

     

    How can I load data and bind to RadMaskedInput to show data?

    Thanks.

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    487 posts

    Posted 27 Oct Link to this post

    Hi Richard,

    The property you're looking for is InputValue. Here's a simple example to demonstrate:

    <ContentPage>
        <StackLayout>
            <Label x:Name="OutputLabel" VerticalOptions="Center"/>
     
            <telerikInput:RadMaskedInput x:Name="maskedInput"
                                 WatermarkText="Enter Email Address"
                                 Mask=".+@[a-zA-Z]+\.[a-zA-Z]+"
                                 MaskType="Regex"/>
     
            <Button Text="Get Value" Clicked="Button_OnClicked"/>
        </StackLayout>
    </ContentPage>

    public partial class StartPage : ContentPage
    {
        public StartPage()
        {
            InitializeComponent();
        }
     
        private void Button_OnClicked(object sender, EventArgs e)
        {
            OutputLabel.Text = maskedInput.InputValue;
        }
    }


    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top