This seems like something obvious I''ve missed but what''s the best way to get the value of a MaskedEditBox?
For example, a value bound to the control might be "1112223333" and the control uses a mask of "(999) 999-9999"
then the Text property is "(111) 222-3333", but is there a property that contains the original "1112223333"?
AR
Anupama Roy
Syncfusion Team
February 6, 2006 03:07 PM UTC
Hi Mark
Sorry for the delay in response.
You need to set the ClipMode property to ExcludeLiterals inorder to get the value without the Literals.
this.maskedEditBox1.ClipMode = Syncfusion.Windows.Forms.Tools.ClipModes.ExcludeLiterals;
Please let us know if you need furthur assistance.
Thank you for choosing Syncfusion products.
Regards,
Anu.
MA
Mark Atkinson
February 24, 2006 12:27 AM UTC
Hi Anupama,
That works better except in the case where the underlying value is NULL. In that case the Text value still seems to have the maks chars.
AR
Anupama Roy
Syncfusion Team
July 4, 2006 07:41 AM UTC
Hi Mark,
I had overlooked your last post by mistake and my sincere apologies for the delay in response.
You can set PaddingCharacter property inorder to specify the character that has to be used instead of mask characters when the mask position has not been filled and the value is NULL.You can leave this property blank if you do not want anything to be displayed as the Text.
Thank you for your patience.
Best Regards,
Anu.