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

Radmaskedtextbox not accepting promptchar

1 Answer 55 Views
Input
This is a migrated thread and some comments may be shown as answers.
Raja Rajeswari Mohan Venkataraman
Top achievements
Rank 1
Raja Rajeswari Mohan Venkataraman asked on 08 Dec 2011, 11:57 PM
Hi,

I have the following Radmaskedtextbox.

<

 

telerik:RadMaskedTextBox Runat="server" ID="MaskEditLon" SelectionOnFocus="CaretToBeginning"

 

 

Width="91px" PromptChar="0" >

 

</

 

telerik:RadMaskedTextBox>

 


In  the page_load i have set the mask for the Radmaskedtextbox.

Protected

 

Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

MaskEditLon.Mask =

"<W|E> ### ##' ##"""""

 

 

End Sub

 


Now if i enter 0 in the control it does not accepts zero. I want zero to be used both as promptchar and also as the input in the radmaskedtextbox.

Could you please help me to achieve what I want.

Thanks,
Raji




1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Dec 2011, 06:02 AM
Hello,

You can set the promptchar as shown below.

CS:
Protected Sub Page_Load(sender As Object, e As EventArgs)
    MaskEditLon.Mask = "### ##' ##"
    MaskEditLon.PromptChar = "0"
End Sub

Also take a look into the following demo.
Input / First Look

Thanks,
Princy.
Tags
Input
Asked by
Raja Rajeswari Mohan Venkataraman
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or