RadMaskedEdit bug!

3 posts, 1 answers
  1. Abbas
    Abbas avatar
    13 posts
    Member since:
    Oct 2012

    Posted 30 Jan Link to this post

    Hi Telerik Team,

    I have a RadMaskedEdit on a form.
    When you check the Modified flag (radMaskedEditBox1.Modified ) it will true or false based on the typing something on radMaskedEditBox.

    but if you set the Masktype property to Numeric, you will only get false return value for Modified property.
    Any suggestions?

    Thanks,

    Abbas

  2. Abbas
    Abbas avatar
    13 posts
    Member since:
    Oct 2012

    Posted 02 Feb Link to this post

    Up.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 02 Feb Link to this post

    Hi Abbas,

    Thank you for writing.

    I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

    To workaround this issue you can manually set the property:
    string oldValue = string.Empty;
     
    void radMaskedEditBox1_LostFocus(object sender, EventArgs e)
    {
        if (oldValue != radMaskedEditBox1.Text)
        {
            radMaskedEditBox1.Modified = true;
        }
        else
        {
            radMaskedEditBox1.Modified = false;
        }
     
        oldValue = radMaskedEditBox1.Text;
    }

    Your Telerik Points have been updated for this report.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Telerik

Back to Top