Welcome Guest Search | Active Topics | Sign In | Register

MaskedEdit constraints Options
DTU
Posted: Sunday, July 18, 2010 7:24:11 PM
Rank: Advanced Member
Groups: Member

Joined: 5/19/2010
Posts: 35
Hi,

I've been using MaskEdits recently and have a few questions about what you can and can't do with them:

- Is it possible to remove the underline, in order to keep a consistant appearance with regular text boxes?
- If using decimal places, is there a way to completely clear the control? With no decimals you can wipe the text completely, while with decimals it seem to revert to "0.00"
- Is there a way to go to a specific character? IE. I have the number 127,000 and I want to correct it to 128,000: Is there a way to allow a user to select just the 7?
- Is there something like a Javascript event which occurs before a MaskedEdit is databound so I can format the database value to suit the MaskedEdit's segments?

Thanks again.
eo_support
Posted: Monday, July 19, 2010 9:25:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
DTU wrote:
- Is it possible to remove the underline, in order to keep a consistant appearance with regular text boxes?

I believe you can set PromptChar to " " (Space) for that.

DTU wrote:
- If using decimal places, is there a way to completely clear the control? With no decimals you can wipe the text completely, while with decimals it seem to revert to "0.00"

You can use a single "Mask" segment and set the mask to something like "99.99". In that case delete will revert it to "__.__". It will still have the "." and will not be completely blank. However it should not display "0".

DTU wrote:
- Is there a way to go to a specific character? IE. I have the number 127,000 and I want to correct it to 128,000: Is there a way to allow a user to select just the 7?

No. The MaskedEdit always selects by segment.

DTU wrote:
- Is there something like a Javascript event which occurs before a MaskedEdit is databound so I can format the database value to suit the MaskedEdit's segments?

That event if existed would be on whatever parent control that you use to host and populate the MaskedEdit control. The MaskedEdit control itself does not have any such interface.

Hope this helps.

Thanks


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.