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

Problems with RadMaskedTextbox Displaying Correctly

2 Answers 97 Views
Input
This is a migrated thread and some comments may be shown as answers.
mdonato
Top achievements
Rank 1
mdonato asked on 14 Jul 2008, 05:06 PM
I have a masked textbox in the edit form of my grid.  The field is displaying locker combinations which should be in the format:
## ## ##
where # can be any digit 0-9.  Here is the code for the texbox:

 <EditItemTemplate> 
  <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" 
      runat="server"    
      Text='<%# Bind("Combo1") %>'  Mask="## ## ##"   
      DisplayMask="## ## ##" Width="50px" 
      DisplayPromptChar="_">  
  </telerik:RadMaskedTextBox> 
</EditItemTemplate> 

The problem is that when I go to edit a row the combination
01 29 03
displays as __ 01 29
and when I click in the masked input box it changes to
01 __ 29

Can anyone help me with what I am doing wrong?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Jul 2008, 11:53 AM
Hello Marcello,

I tried to reproduce the below mentioned issue without success. Can you please send us a simple working version of your project via regular support ticket? Thus we will be able to give you more to-the-point answer/solution.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
mdonato
Top achievements
Rank 1
answered on 18 Jul 2008, 03:00 AM
Thank you for your reply.  I think I figured it out. When I stripped out the spaces in the database value it seems to work fine.

Tags
Input
Asked by
mdonato
Top achievements
Rank 1
Answers by
Daniel
Telerik team
mdonato
Top achievements
Rank 1
Share this question
or