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

RadColumnSparkline throwing exception with null values

1 Answer 48 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rajasekhar
Top achievements
Rank 1
Rajasekhar asked on 18 Apr 2012, 08:13 AM
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
Rajasekhar

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 23 Apr 2012, 09:34 AM
Hi,

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 >>

Tags
Chart
Asked by
Rajasekhar
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or