Completed
Last Updated: 28 May 2019 13:27 by ADMIN
ADMIN
Hristo
Created on: 12 May 2016 08:00
Category: Editors
Type: Bug Report
0
FIX. RadMaskedEditBox - IndexOutOfRange exception if the editor is set up in Arabic culture with currency mask and numeric masktype and one tries to enter a digit while the control has all of its text
How to reproduce: 
public Form1()
{
    InitializeComponent();

    this.radMaskedEditBox1.Culture = new CultureInfo("ar-EG");
    this.radMaskedEditBox1.Mask = "c";
    this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Numeric;
}

Workaround: handle the KeyDown event
 private void radMaskedEditBox1_KeyDown(object sender, KeyEventArgs e)
 {
     if (this.radMaskedEditBox1.SelectionLength == this.radMaskedEditBox1.Text.Length)
     {
         this.radMaskedEditBox1.SelectionLength = 0;
     }
 }
0 comments