Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > TextMode MaskedText not including mask

Answered TextMode MaskedText not including mask

Feed from this thread
  • Chris avatar

    Posted on Feb 2, 2012 (permalink)

    I have the following XAML and the ContractId is not being set to the value entered including the mask

    If I set a mask of AAnn-nnn-LL and the user enters AB12-345-XY then ContractId is being set to AB12345XY and not AB12-345-XY, is there anyway to get this to work?

    <telerik:RadMaskedTextInput

                                        Grid.Row="0"

                                        Grid.Column="2"

                                        HorizontalAlignment="Stretch"

                                        Value="{Binding ContractId, Mode=TwoWay}"

                                        Mask="{Binding FormatMask}"

                                        EmptyContent="{Binding Mask.MaskValue}"

                                        TextMode="MaskedText"/>

                                   

    Thanks
    Chris.

    Reply

  • Chris avatar

    Posted on Feb 6, 2012 (permalink)

    Guess not then?

    Reply

  • Answer Petar Mladenov Petar Mladenov admin's avatar

    Posted on Feb 7, 2012 (permalink)

    Hello Chris,

     I think you need to use the Text property instead of the Value, which represents the formatted Value including the placeholder characters (when the TextMode is "MaskedText". You can find more info in this help article.
    Please let us know if you need further assistance on this.

    All the best,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > TextMode MaskedText not including mask
Related resources for "TextMode MaskedText not including mask"

Silverlight MaskedTextBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]