Welcome Guest Search | Active Topics | Sign In | Register

MaskedEdit - Property "L" has to be escaped from masking Options
Poovika Devi
Posted: Friday, January 3, 2020 5:02:17 AM
Rank: Newbie
Groups: Member

Joined: 1/3/2020
Posts: 3
Hi Team,

I am using Essential Object MaskedEdit in my Web forms project where the controls gets bind dynamically.
In this, if user provides Field Masking value for any of the text box, that text box has to be masked.
For this, EO.Web.MaskedEdit is used.
I need to escape the property "L" from masking.
"L" - Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.


Example:

When i am giving field mask as "XL###", the form gets loaded as "X_ ".
I need the form to get loaded as "XL ".

I tried using "\". But in EO.Web.MaskedEdit, even "\" escape character is not escaping the property of "L".

Kindly help me on this.
eo_support
Posted: Friday, January 3, 2020 4:26:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

Please use two different segments: A Literal segment and a Mask segment. The Literal segment will have "XL" and the Mask segment handles the rest. See here for more information about segments:

https://www.essentialobjects.com/doc/web/maskededit/segments.aspx

Thanks!
Poovika Devi
Posted: Wednesday, January 8, 2020 5:16:31 AM
Rank: Newbie
Groups: Member

Joined: 1/3/2020
Posts: 3
Hi Team,

Thank you for your quick response.
My project is not feasible to split the input as you stated above.
Is there any chance to remove the property "L" from Mask segment ? Will i be able to overwrite your class and remove property "L" from your library?


Thanks.
eo_support
Posted: Wednesday, January 8, 2020 10:01:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
No. There is no way to do that. You must split them.
Poovika Devi
Posted: Thursday, January 9, 2020 4:18:25 AM
Rank: Newbie
Groups: Member

Joined: 1/3/2020
Posts: 3
Thank you


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.