Completed
Last Updated: 23 May 2019 13:20 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.603)
David
Created on: 18 Apr 2019 08:42
Category: Editors
Type: Bug Report
0
RadMaskedEditBox: ValueChanging event is not fired with MaskType.Standard

Use the following code to setup RadMaskedEditBox. When you start typing you will notice that the ValueChanged event is fired but the ValueChanging is not: 

            this.radMaskedEditBox1.MaskType = MaskType.Standard;
            this.radMaskedEditBox1.Mask = "AAAA";

            this.radMaskedEditBox1.ValueChanged += radMaskedEditBox1_ValueChanged;
            this.radMaskedEditBox1.ValueChanging += radMaskedEditBox1_ValueChanging;

        private void radMaskedEditBox1_ValueChanging(object sender, CancelEventArgs e)
        {
        }

        private void radMaskedEditBox1_ValueChanged(object sender, EventArgs e)
        {
        }

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 18 Apr 2019 08:47
Hello, David,     

Thank you for reporting this.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to use the following code snippet:

FieldInfo fi = typeof(StandartMaskTextBoxProvider).GetField("provider", BindingFlags.NonPublic | BindingFlags.Instance);
StandartCharacterMaskEditBoxProvider provider = fi.GetValue(this.radMaskedEditBox1.MaskedEditBoxElement.Provider) as StandartCharacterMaskEditBoxProvider;
provider.InsertKeyMode = InsertKeyMode.Overwrite;

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.