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

    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



  2. Milena
    Admin
    Milena avatar
    224 posts

    Posted 14 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top