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

radmaskedtextbox ontextchanged

2 Answers 95 Views
Input
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 30 Jun 2011, 06:35 PM
<telerik:RadMaskedTextBox ID="PostalCode" runat="server" Text='<%#Bind("PostalCode")%>'
                                  Mask="L#L #L#"  OnTextChanged="PostalCode_OnTextChanged" AutoPostBack="true" Width="50" />
I'm having trouble with the ontextchanged event of the radmaskedtextbox. I enter my postal code into the mask and tab to the next field. It posts back and calls the ontextchanged event. However, the first time is posts back, the text value is blank "". If i enter the postal code a second time, the ontextchanged event picks up the value. It seems it needs a postback to actually change the value in the page, but the ontextchanged event runs before the value has been changed. Is there a workaround for this behaviour?

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 05 Jul 2011, 03:36 PM
Hi Greg,

Thank you for contacting us.

I tried to replicate the described issue on my side but to no avail. please find attached a small runnable application which works correctly on my side. Test it locally and let me know what the difference in your case is.

Regards,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Maria Ilieva
Telerik team
answered on 05 Jul 2011, 03:36 PM
Hi Greg,

Thank you for contacting us.

I tried to replicate the described issue on my side but to no avail. please find attached a small runnable application which works correctly on my side. Test it locally and let me know what the difference in your case is.

Regards,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Input
Asked by
Greg
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or