Welcome Guest Search | Active Topics | Sign In | Register

Masked Edit Number Segment - Have you added ability to enter negative numbers? Options
PDG
Posted: Tuesday, December 13, 2011 1:38:27 PM
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
eo_support
Posted: Tuesday, December 13, 2011 2:48:14 PM
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!


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.