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

MaskEditBox loses value

5 Answers 56 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 26 Feb 2009, 06:50 PM
I have a MaskEditBox for a phone number.  When I click out or tab out of the maskeditbox the value is replaced with (___) ___-____.  Is there a property that I need to set or some other workaround to fix this?

5 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 02 Mar 2009, 04:08 PM
Hi Erin,

Thank you for contacting us.

How do you set the value in the maskeditbox? Using the Value property or the Text property? The right way is to use the Value property of the control.

I'm looking forward to your reply.

Regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Erin
Top achievements
Rank 1
answered on 03 Mar 2009, 05:50 PM
I was using the Text property, switching it to the Value property has cleared up this issue. 
0
Bob
Top achievements
Rank 1
answered on 01 Jun 2009, 07:10 PM
I am experiencing similar behavior but my MaskedEditBox is datetime and when I try to write .value instead of .text nothing is displayed.
0
Bob
Top achievements
Rank 1
answered on 01 Jun 2009, 08:23 PM
Modified my code from:
 
 txtDateOfBirth.Value = ClientDataTable.Rows(0).Item("DateOfBirth")

To:
 
 txtDateOfBirth.Value = Convert.ToDateTime(ClientDataTable.Rows(0).Item("DateOfBirth"))

Works fine :)
0
Boryana
Telerik team
answered on 02 Jun 2009, 08:52 AM
Hello guys,

I am glad that everything works fine now! If you have further questions, do not hesitate to contact us.

Sincerely yours,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
MaskedEditBox
Asked by
Erin
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Erin
Top achievements
Rank 1
Bob
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or