Rank: Advanced Member Groups: Member
Joined: 12/19/2010 Posts: 47
|
I have checked your forum and found that a couple of years ago you were hoping to add the ability to put a negative sign in the number segment of a ME control.
A. Have you done this? B. If not, is there a standard way to use a masked edit control for a numeric field that allows decimal points and negative numbers and functions as a single field??
This functions as two fields: Segment #1 Mask = "#", Segment #2 Type = number
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, No. I do not believe there is any good way to enter negative numbers with our MaskedEdit control. The closest you can get is to use two mask segment and a literal segment:
Code: HTML/ASPX
<eo:MaskedEdit runat="server" ID="MaskedEdit">
<eo:MaskedEditSegment SegmentType="Mask" Mask="#9999" />
<eo:MaskedEditSegment SegmentType="Literal" Text="." />
<eo:MaskedEditSegment SegmentType="Mask" Mask="99" />
</eo:MaskedEdit>
This will allow you to enter positive or negative numbers. However there is no way to align the integer part to the right. So it can appear as "-12__.34" on the screen for number "-12.34". Thanks!
|