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

RadMaskedTextBox Text

3 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
joan
Top achievements
Rank 1
joan asked on 06 Dec 2010, 11:29 PM
Hi, I have  RadMaskedTextBox defined as:

<

 

 

telerik:RadMaskedTextBox ID="MaskedTextBox_PPC_CODE" runat="server" CatalogIconImageUrl=""

 

 

 

Description="" DisplayPromptChar="_" Mask="##-######.####" PromptChar="_"

 

 

 

Title="" Text="76-.0000"

 

 

 

TitleIconImageUrl="" TitleUrl=""></telerik:RadMaskedTextBox>

it's telerik 2010 Q2, how to make the the textbox's text like '76-______.0000',
not '76-0000__.____'.   thanks.

 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 07 Dec 2010, 05:34 AM
Hello John,

Your code worked at my end and one suggestion is to use the Mask and  DisplayMask properties together to achieve the same output.

aspx:
<telerik:RadMaskedTextBox ID="MaskedTextBox_PPC_CODE" runat="server" CatalogIconImageUrl=""
            Description="" DisplayPromptChar="_" Mask="##-######.####" DisplayMask="76-######.0000"
            PromptChar="_" Title="" TitleIconImageUrl="" TitleUrl="">
</telerik:RadMaskedTextBox>


Thanks,
Princy.
0
joan
Top achievements
Rank 1
answered on 07 Dec 2010, 06:23 PM
Hi, I copied your control to a simple web page, but when I focus on the control, the text is all gone and shows '__.______.____'.  When I used the same control on my real page under a master page, it only shows the '__.______.____', not the default string '76-______.0000' at all.  This control used to work with older version of telerik (may be before the asp.net ajax components came out?).  We want the web page look stays the same even when we upgrade the telerik.  Anything I miss?  thanks.
0
Hus Damen
Top achievements
Rank 1
answered on 10 Dec 2010, 12:55 PM
Hi,

Me are used this codes and its works:

<telerik:RadMaskedTextBox ID="MTB1" runat="server"
    DisplayPromptChar="_" Mask="76-######.0000" DisplayMask="76-######.0000"
    PromptChar="_">
</telerik:RadMaskedTextBox>

Tanks,

Hus
Tags
General Discussions
Asked by
joan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
joan
Top achievements
Rank 1
Hus Damen
Top achievements
Rank 1
Share this question
or