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

Display blank when zero

2 Answers 234 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 24 Feb 2010, 10:49 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 24 Feb 2010, 11:49 AM
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.
0
Ian
Top achievements
Rank 1
answered on 24 Feb 2010, 12:50 PM
Dimo,
OK. Thanks for the prompt reply.
Tags
Input
Asked by
Ian
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ian
Top achievements
Rank 1
Share this question
or