0

Right align doublebox value

asked 2009-09-02 13:35:44 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

I need to align the doublebox value as right aligned. Because, generally numerical values should be right aligned as default.
It should accept the user input from the right hand side.

Is it possible to make the doublebox behave like that?

Thanks.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-09-02 13:55:54 +0800

YamilBracho gravatar image YamilBracho
1722 2

Just <doublebox id ="uno" maxlength="10" format="#,##0.00" style="text-align:right"/>

link publish delete flag offensive edit

answered 2009-09-03 06:22:47 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

Thanks YamilBracho :)

The alignment property works awesome.
But, the format attribute is not working as expected.

I have specified the format as mentioned below:

<doublebox format="##,##,##,##,##0.00" style="text-align:right" width="95%" />

But, it actually formats as shown below, when we enter the value (123456789) :

123,456,789.00

How can we force the comma separator possition exactly to the specified format?

Thanks.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-02 13:35:44 +0800

Seen: 434 times

Last updated: Sep 03 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More