Dojo Currency Textbox

Posted on 2010-08-13
Last Modified: 2012-05-10
Hello, I,m using the Dojo Currency Textbox to display data from a table, the column that i,m displaying is on double format. My problem is that if  i enter a value like 15.20 the system save me 15.2 in the table and when i call my data and fill the dojo field it bring the data, but with a dojo error message because he expect data to be like 15.20, if i add a 0 to the value it delete the error. the only time it work fine is when i save a value like 15.25. I don,t know if double is the correct format to my field in the database, or if i have to change my format in the dojo Currency TextBox
Question by:cano63
  • 3
  • 2
LVL 82

Expert Comment

ID: 33435015
you need to add the missing zero when you get the value from the database

Author Comment

ID: 33436668
I can do that but what about if the saved value is like 15.25 when it load it will be 15.250 and dojo will display the error message, i can do a logic to validate when or not to add the 0 but thats i what i don,t want to do. Is there a way to tell dojo that with only one 0 the field is ok.
LVL 82

Accepted Solution

leakim971 earned 500 total points
ID: 33436687
You don't add a zero every time only when it miss (when you've 1 digit after decimal point)

Author Comment

ID: 33451139
That what i don,t want do to, i have over 100 currency field and if for each one i have to write logic, there is no advantage of using this dojo currency textbox.
LVL 82

Expert Comment

ID: 33481598
Thanks for the points!

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
problem with a simple switch code on java script 7 253
Sort my list 5 388
AJAX post submit actions 6 260
jQuery, change background image on checkbox select 9 172
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate ( First, just open a new email message. In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now