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

RadCalculatorPicker converter failed

3 Answers 65 Views
Calculator
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 03 Feb 2012, 07:21 PM
I'm attempting to use a RadCalculatorPicker, binding it to a property of type Nullable<decimal>. The following exception occurs at bind time. Is there something I can do to avoid this?
Thanks,
Chuck

System.Windows.Data Error: 'MS.Internal.Data.DynamicValueConverter' converter failed to convert value 'null' (type 'null'); BindingExpression: Path='Dto.JobOrder.BaseMin' DataItem='ViewModels.JobOrderDetailViewModel' (HashCode=20470679); target element is 'Telerik.Windows.Controls.RadCalculatorPicker' (Name='uxMinSalary'); target property is 'Value' (type 'System.Decimal').. System.InvalidOperationException: Can't convert type null to type System.Decimal.
   at MS.Internal.Data.DynamicValueConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.ConvertToTarget(Object value).

3 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 06 Feb 2012, 08:36 AM
Hello Chuck,

I have tested the case, but unfortunately I was not able to get the exception you mentioned. Could you take a look at the sample attached and let me know whether you can get it on it ? Am I missing something ?  

Kind regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Chuck
Top achievements
Rank 1
answered on 06 Feb 2012, 04:35 PM
Maya,
Thanks for your quick response. We are using the RadCalculatorPicker in a loose control, rather than a RadGrid. So, I modified the sample you sent, adding some loose controls which were bound to the Grid's Selectedtem. With these modifications, I was able to reproduce the exception when I ran my version of the sample. However, in some further testing in our application, I no longer believe that these exceptions are causing us any harm at the moment. Unfortunately, I do not seem to be able to attach the updated ZIP to this post. Let me know if you have any questions.
Thanks,
Chuck

0
Vlad
Telerik team
answered on 06 Feb 2012, 04:39 PM
Hi,

 You can open support ticket and send us your project. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Calculator
Asked by
Chuck
Top achievements
Rank 1
Answers by
Maya
Telerik team
Chuck
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or