RadColumnSparkline throwing exception with null values

2 posts, 0 answers
  1. Rajasekhar
    Rajasekhar avatar
    1 posts
    Member since:
    Nov 2011

    Posted 18 Apr 2012 Link to this post

    Hi Telerik Community Support,

    My xaml declaration is 
    <telerik:RadColumnSparkline AutoRange="False" MinYValue="0" Width="Auto" Height="24" ItemsSource="{Binding ChartValues}" YValuePath="ChartVal" Margin="0,2,0,2" ShowAxis="False"  ItemFill="{StaticResource AccentBrush}"/>

    it is working fine, but if i have data like 5, null, 6 then it throwing following exception

    Line: 67
    Error: Unhandled Error in Silverlight Application 
    Code: 4004    
    Category: ManagedRuntimeError       
    Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)     

    Thanks & Regards
  2. Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 23 Apr 2012 Link to this post


    We tried to reproduce the problem, but without success. I am attaching our sample app so you can test as well. Please, feel free to modify it and send it back to us in order to help us to isolate the issue.

    Kind regards,
    Vladimir Milev
    the Telerik team

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

Back to Top