To reproduce: use the following code:
public Form1()
{
InitializeComponent();
RadMaskedEditBox maskControl = new RadMaskedEditBox();
maskControl.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
CultureInfo ci = CultureInfo.CreateSpecificCulture(Thread.CurrentThread.CurrentCulture.Name);
ci.NumberFormat.NumberGroupSeparator = "";
maskControl.Culture = ci;
maskControl.Text = "2";
object o = maskControl.Value; //Exception!!
this.Controls.Add(maskControl);
}
Workaround:
Do not set NumberGroupSeparator to String.Empty when TextMaskFormat=ExcludePromptAndLiterals