RadNumericTextBox setting to zero exception "invalid pattern"

2 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 11 Sep 2012 Link to this post


    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,


  2. Milena
    Milena avatar
    223 posts

    Posted 14 Sep 2012 Link to this post


    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top