9 Answers, 1 is accepted
The default value of the RadMaskedNumericInput control is 0 and this is why it is displayed when the control is initialized. But if you want to change the default Value to null, you can bind it to a nullable double business property which initial value is null. Or if you don't want to use databinding you can set the Value to null in xaml: Value="{x:Null}". Give this a try and let us know if it helps.
On a side note, I just wanted to encourage you to take advantage of the support ticketing system (http://www.telerik.com/account/support-tickets/new-support-ticket.aspx) in cases when you need a prompt response to urgent issues. This is the best way to reach our support staff - the support system assigns a response time for all of your questions, depending on your license and ensures that all questions will reach the respective developers, if needed.
All the best,Tina Stancheva
the Telerik team
Binding a RadMaskedNumericInput to a nullable double? property indeed works correctly as described above... however, when binding to an int? the control displays '0' even when the bound property value is null.
I also tried binding to float? and decimal? with the exact same result. Only double? properties appear not to default to '0' for null values.
Is this a bug?
Thanks,
This is indeed a bug, so I logged it in our PITS where you can track its progress. I also updated your Telerik account for bringing this issue to our attention.
Greetings,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I am having the same issue. Could you please indicate when this bug will be fixed?
Thanks,
Mike
We will do our best to fix this issue for the Q2 2012 official release scheduled for the middle of June. I hope this time-frame is acceptable for you.
Kind regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks for letting me know. At the moment I am working round the issue by using an int? to double? converter but It would be great if this could be included in Q2 as it's not the prettiest solution.
Thanks,
Mike
Is this issue resolved? I am facing a similar situation with RadMaskedNumericControl where I am binding it to a nullable decimal and it is displaying 0 instead of blank.
I am using v2013.3.1204.45
Thanks,
Ankur
The logged issue is marked as resolved but actually we have not introduced any changes in our code. Thi is because the RadMaskedNumericInput's Value property is of type nullable double (Double?) and when it is bound to nullable Int there is no framework mechanism to automatically match the null value from the set (null or decimal} to the property's type value (null or double). This is why 0 is displayed - the default value of the MaskedNumericInput's Value which is dependency property.
I hope this helps.
Regards,
Martin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Best,
Ankur