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

RadMaskedEdit bug!

2 Answers 58 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Abbas
Top achievements
Rank 1
Abbas asked on 30 Jan 2016, 10:20 AM

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 Answers, 1 is accepted

Sort by
0
Abbas
Top achievements
Rank 1
answered on 02 Feb 2016, 10:01 AM
Up.
0
Accepted
Dimitar
Telerik team
answered on 02 Feb 2016, 12:32 PM
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

Tags
MaskedEditBox
Asked by
Abbas
Top achievements
Rank 1
Answers by
Abbas
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or