v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

TextEdit mask limited to 10 digits

Issue Details

Log in to Track Changes or Edit
Q51279
Question
Gabor Szabo
Yes
Processed
Answered
.NET
XtraEditors Library
7.1.4.0
Windows XP
Microsoft Visual Studio 2005
6/3/2009 12:43:19 PM
-> Created by Gabor Szabo 11/14/2007 11:42:06 AM

Dear Support,

I am faceing a problem regarding to XtraEditors TexEdit control. I would like to display an edit filed for input and edit of an 18 long amount (no decimals).
The syptom is that the TextEdit limits the user input to 10 digits. I tried both the short d18 and custom ###,###,###,###,###,##0 mask.
If I set the d18 mask I see the leading zeros in the mask but cannot input more than 10 digits and not thousand formating. I the case of a custom mask no leading zeros are displayed, the thousand formating is ok, but the input is also limited to 10 digits.

The culture is hungarian.
A regexp \d{18} is ok for me, but it does not format the value into thousand groups.

What did I do wrong?
Thank you in advance!

Best Regads,
Gabor Szabo

<- Reviewed by DevExpress Team 11/15/2007 7:48:38 AM
<- Processed (Answered) by DevExpress Team 11/15/2007 9:17:58 AM

Hello Gabor,

The problem is that your TextEdit control is bound to an integer value. However, the integer type cannot accept more than 10 digits. The solution is to bind the control to a long value. For instance, this can be done as follows:

 TextEdit edt = new TextEdit();
 edt.EditValue = 0L;

Thank you, Alex.

<- Processed (Customer Closed) by Gabor Szabo 6/3/2009 12:43:19 PM
Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips