RadMaskedTextBox.set_value() doesn't update

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    47 posts
    Member since:
    Sep 2010

    Posted 12 Jun 2015 Link to this post

    Team Telerik,

    I've encountered what appears to be a bug with the RadMaskedTextBox.set_value() method in ASPNet UI 2015.1.401.45

    When called, the RadMaskedTextbox doesn't reflect the new value until you mouse click into the field.

    Work Around:

    Call RadMaskedTextbox.focus() immediately after RadMaskedTextbox.set_value(). It's a little tacky, but it works.

    Can you guys fix this for 2015 Q2? That'd be great. Thanks.

    - Jonathan

  2. Konstantin Dikov
    Konstantin Dikov avatar
    1739 posts

    Posted 17 Jun 2015 Link to this post

    Hi Jonathan,

    I have tested the described scenario with version 2015.1 401, but everything seems to work correctly on my end with the following example:
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function changeValue(sender, args) {
                var maskedTextBox1 = $find("<%=RadMaskedTextBox1.ClientID%>");
                var maskedTextBox2 = $find("<%=RadMaskedTextBox2.ClientID%>");
    <telerik:RadMaskedTextBox runat="server" ID="RadMaskedTextBox1" Mask="###-###"></telerik:RadMaskedTextBox>
    <telerik:RadMaskedTextBox runat="server" ID="RadMaskedTextBox2" Mask="Llll"></telerik:RadMaskedTextBox>
    <telerik:RadButton runat="server" ID="RadButton1" AutoPostBack="false" Text="Test button" OnClientClicked="changeValue"></telerik:RadButton>

    Can you please modify the above, so it could replicate the problem that you are facing?

    I am looking forward to your reply.

    Konstantin Dikov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top