Display blank when zero

3 posts, 1 answers
  1. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 24 Feb 2010 Link to this post

    Hi,
    I'm using a RADNumeric Textbox (Type=Currency) and want to display nothing (ie. an empty textbox rather than £0.00) when I initially populate the form and the value to be shown in the control is zero.

    I've found I can achieve this by checking whether the value to be loaded into the control is zero and, if it is, setting the textbox 'value' property to null. Is this the best way to achieve what I'm after or is there a better solution using any of the control's 'NumberFormat' properties?

    I'm using ASP.NET AJAX Q3/2009 release.

  2. Answer
    Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 24 Feb 2010 Link to this post

    Hello Ian,

    There is no relevant NumberFormat property to suit your purpose, so your approach is correct.

    Greetings,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 24 Feb 2010 Link to this post

    Dimo,
    OK. Thanks for the prompt reply.
Back to Top