RadCalculatorPicker converter failed

4 posts, 1 answers
  1. Chuck
    Chuck avatar
    10 posts
    Member since:
    Sep 2012

    Posted 03 Feb 2012 Link to this post

    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).
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Chuck
    Chuck avatar
    10 posts
    Member since:
    Sep 2012

    Posted 06 Feb 2012 Link to this post

    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

  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
Back to Top