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

RadNumericTextBox setting to zero exception "invalid pattern"

1 Answer 224 Views
Input
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 11 Sep 2012, 07:29 PM
Hello,

Got a problem today: exception: invalid pattern (during rendering)

version: 2012.2.724.40
<telerik:RadNumericTextBox ID="rnt_EmployeeCount" Width="70px" ShowSpinButtons="true" MinValue="0" MaxValue="9999999" Style="text-align: right;" runat="server"
    NumberFormat-DecimalDigits="0" NumberFormat-ZeroPattern="0" />

It seems that when i set a value of zero to (rnt_EmployeeCount.Value = 0) this error occurred. Other values worked fine.
When I delete NumberFormat-ZeroPattern="0"  the problem disappears... seems like a bug?

Kind regards,

Erik



1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 14 Sep 2012, 11:49 AM
Hi,

I am afraid that it is not supported scenario to set ZeroPattern="0", it is necessary to change ZeroPattern to "n". You can see how this property works in the following online example.

Kind regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
Erik
Top achievements
Rank 2
Answers by
Milena
Telerik team
Share this question
or