Last Updated: 04 Jan 2023 13:54 by ADMIN
Created on: 04 Jan 2023 13:51
Category: MaskedEditBox
Type: Bug Report
RadMaskedEditBox: Canceling the ValueChanging event still changes the Value

Use the following code: 

        public RadForm1()
            this.radMaskedEditBox1.MaskType = MaskType.Numeric;
            this.radMaskedEditBox1.Mask = "n3";


        private void RadButton1_Click(object sender, EventArgs e)
            this.Text = this.radMaskedEditBox1.Value + "";

        private void radMaskedEditBox1_ValueChanging(object sender, CancelEventArgs e)
           e.Cancel = true; 

You will notice that even though the ValueChanging event is cancelled, the Value property is still changed.

Attached Files:
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 04 Jan 2023 13:54

Hi, Thomas,

Thank you for bringing this to our attention. Please excuse us for the inconvenience caused. We will do our best to introduce an appropriate solution.

Currently, the possible solution that I can suggest for numeric values is to use RadSpinEditor.

Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.