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

RadNumericInput and RadMaskedDateTimeInput empty content

3 Answers 148 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohini
Top achievements
Rank 1
Rohini asked on 23 Jan 2012, 09:58 AM
Hi,

  We are using RadMaskedDateTimeInput ,RadNumericInput and many others in our project. Main intention is for localization. It works great in most cases. But RadNumericInput shows the min value in the text box when nothing has been set. This issue does occurs only when minvalue is specified.

Similary RadMaskedDateTimeInput shows today's date when no date is set.

Is there a solution identified for these 2 issues.

Thanks,
Rohini

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 25 Jan 2012, 03:37 PM
Hi Rohini,

You can set the value to null in code behind whenever nothing else is specified. In the xaml definition of the controls you can set the Value of the controls to {x:Null}. This way when the controls are loaded, unless their values are changed, the controls will remain empty.

Please give this a try and let me know if it works for you.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rohini
Top achievements
Rank 1
answered on 27 Jan 2012, 07:50 AM
Hi Tina,


   Thanks for the reply. But we have already tried this. This solution did not work for us as we use the Binding property. When we set value to x:Null the values do not get bound.

Please let us know if there is any other way.

Thanks,
Rohini
0
Tina Stancheva
Telerik team
answered on 27 Jan 2012, 12:45 PM
Hello Rohini,

Thank you for getting back to us. In a databinding scenario, in order to display a null value in the RadMaskedDateTimeInput and RadMaskedNumericInput controls, you need to bind their Values to nullable types.

I attached a sample project demonstrating this approach. Let me know if it helps.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Rohini
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Rohini
Top achievements
Rank 1
Share this question
or