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

problem with Rad Masked Currency Input

4 Answers 180 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hen
Top achievements
Rank 1
Veteran
Hen asked on 17 Mar 2021, 11:51 AM

Dear sir,

I am using the  Rad Masked Currency Input control in my project. One of the requirement  is  to show empty content when the value is null.

 Unfortunately, when  I set the empty Content property to string. Empty or to null , I still see the default value in the control ( zero number).

 I can see an error in the output window of problem to convert null object  to value. 

I have noticed that after pressing the clear button and opening again the control  the content become empty.

Do you have a solution to this scenario?

Thank you,

 Yafit hamilton

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 19 Mar 2021, 12:35 PM

Hello Hen,

Could you please try the following attached property and let us know if this the behavior you need ?

MaskedInputExtensions.AllowNull

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Hen
Top achievements
Rank 1
Veteran
answered on 25 Mar 2021, 08:03 AM

Unfortunately still not working.

The zero number showing up as default instead of null

0
Petar Mladenov
Telerik team
answered on 25 Mar 2021, 11:58 AM

Hi Hen,

The Value property in RadMaskedCurrencyInput is of type nullable double. In case you have bound it to double with 2-way binding, null value is missing in the double domain and this could be the reason. Could you please double check you are binding to nullable double property but not double ? If this does not help, can you send us more from your code, so that we can investigate more precisely? Thank you in advance.

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Hen
Top achievements
Rank 1
Veteran
answered on 05 Apr 2021, 08:04 AM

hello ,

I added FallbackValue = { x:Null} and it's works as I expected

Tags
General Discussions
Asked by
Hen
Top achievements
Rank 1
Veteran
Answers by
Petar Mladenov
Telerik team
Hen
Top achievements
Rank 1
Veteran
Share this question
or