This is a migrated thread and some comments may be shown as answers.

Currency Mask Question

2 Answers 51 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Guy
Top achievements
Rank 1
Guy asked on 16 Nov 2011, 05:11 PM
Hi all,

I'm using several MaskedTextBoxes and have the Mask property set to "C" for currency and the MaskType set to Numeric. This works fine however I cannot seem to enter a value higher than 9.99.

I have looked for a solution online but can only find how to change the number of decimal places "C3" for example.

Is this possible? Should I be using a custom Mask of some kind?

Regards,


Guy

2 Answers, 1 is accepted

Sort by
0
Guy
Top achievements
Rank 1
answered on 17 Nov 2011, 03:42 PM
It appears there was a conflict between having a null value and first selecting the field where the max value would be 9.99. If I was to move the cursor to the far left it would allow me write longer numbers.

I have gotten around my issue by having default values in of 0.00 and using the following code to highlight the values to ensure that they are overwritten.

void radMaskedEditBox1_MouseUp(object sender, MouseEventArgs e)
        {
            this.radMaskedEditBox1.SelectAll();
        }


Please mark this as answered as I'm now happy with the above solution.

Regards,

Guy
0
Peter
Telerik team
answered on 18 Nov 2011, 10:49 AM
Hello Guy,

We are aware of this issue and we provided a fix for it in our latest release Q3 2011.

I hope this helps.

Regards,
Peter
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
MaskedEditBox
Asked by
Guy
Top achievements
Rank 1
Answers by
Guy
Top achievements
Rank 1
Peter
Telerik team
Share this question
or