radmaskedtextbox ontextchanged

3 posts, 0 answers
  1. Greg
    Greg avatar
    17 posts
    Member since:
    Oct 2010

    Posted 30 Jun 2011 Link to this post

    <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. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 05 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 05 Jul 2011 Link to this post

    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!

Back to Top