Welcome Guest Search | Active Topics | Sign In | Register

Trying to format decimal point Options
Jazzcatone
Posted: Monday, December 8, 2014 8:56:50 AM
Rank: Member
Groups: Member

Joined: 7/21/2007
Posts: 11
I have text boxes that will take dollars and cents information. Does anybody know of a way to preformat a text box(be it with the MaskedEdit control , or by some other means)so it will automatically take the last two numbers entered by the user and put them to the right of the decimal point?The entry being from right to left essentially with the decimal point being fixed. Any examples or direction given would be greatly appreciated.

Jason

eo_support
Posted: Monday, December 8, 2014 9:54:28 AM
Rank: Administration
Groups: Administration

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

Currently there is no direct way to do this. The closest you can get is this:

Code: HTML/ASPX
<eo:MaskedEdit runat="server" ID="me2">
    <eo:MaskedEditSegment Mask="-9999.99" SegmentType="Mask" />
</eo:MaskedEdit>


This will allow you to do almost what you wanted to do with one problem: If you type "123", the number "23" will become the decimal (as expected), however if you type "123", then the number "1" will take the "."'s place and you will see ".23" on the screen. If you continue to type, it will work as expected. We will see if we can fix this problem in our next build.

Thanks!

Jazzcatone
Posted: Monday, December 8, 2014 12:04:10 PM
Rank: Member
Groups: Member

Joined: 7/21/2007
Posts: 11
Thank you
--Jason
eo_support
Posted: Monday, December 8, 2014 3:23:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
You are very welcome. Please feel free to let us know if there is anything else.

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.