Hi All
I am using WebCurrencyEdit control in web form. I have following statement to create control:
<
igtxt:WebCurrencyEdit ID="itxtEntOC" runat="server" Width="160px" MaxLength="19" MinDecimalPlaces="Two" CssClass="INPUTThinBorder" NullText=""></igtxt:WebCurrencyEdit>
On the UI when I enter value 8888888888888888.88 and tab out, it changes value to 8888888888888889.00. Also when I enter 1111111111111111111 and tabout it is changing value to 100000000000000000.00Since its a currency value any such changes are saved unnoticed is disaster for application.
Any help fixing this issue. Also on "Page_Onload" event I setting NumberFormat, but this issue existed even without doing that.
Thanks, Yogesh
Hi Yogesh,
It has been some time since your post but in case that you still need assistance I will be happy to help.
I suggest that you look into this post where you will find a detailed answer from one of our developers regarding your issue: http://forums.labs.infragistics.com/readmessage?id=%3C3eecb5d$369948e4$1ae2d@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webdatainput.
If you need any further assistance on the matter please do not hesitate to ask.
Thanks Nikolay for providing this information.
I have already seen this link and it does not provide any solution to issue. It is stating that its an limitation from Javascript. I understand its a limitation but for currency field in any of the accounting application this is unacceptable. For certain currencies even to represent $1 million, it would take more than 13 digit limit that this control imposses.
So I would appriciate if your team can provide custom JS code to resolve this issue.
Thanks,
Yogesh
I made some additional research and I can suggest that you try WebTextEditor to essentially work with string values. You can set the MaxLength according to your needs. On KeyPress client-side event handler you could perform validations, like checking the input and cancel not digit or ‘.’ entries. The value will appear as string of numbers, but you could convert it server-side to a number with any limit.
Please let me know if you need further assistance on this matter.