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

Horizontal bar memory leak

1 Answer 94 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Greg Mulert
Top achievements
Rank 1
Greg Mulert asked on 15 Dec 2010, 09:28 PM
Hi, we're using the Q3 2010 RadChart in horizontal bar mode to display a dashboard gadget. The ItemsSource is bound in XAML to an ObservableCollection that gets updated every 30 seconds. With every rebind there's a memory leak that eventually crashes the browser. It's only the horizontal bar (or horizontal stacked bar) -- switching it to a pie or a vertical bar fixes the problem. We're not doing anything fancy; here's the XAML (the DataContext is an object whose TheData property gets updated on the 30 second interval).

<telerik:RadChart BorderThickness="0" ItemsSource="{Binding TheData}">
<telerik:RadChart.DefaultView>
<chart:ChartDefaultView>
<chart:ChartDefaultView.ChartLegend>
<chart:ChartLegend Visibility="Collapsed" />
</chart:ChartDefaultView.ChartLegend>
            <chart:ChartDefaultView.ChartArea>
                <chart:ChartArea EnableAnimations="False" SmartLabelsEnabled="False"/>
            </chart:ChartDefaultView.ChartArea>
</chart:ChartDefaultView>
    </telerik:RadChart.DefaultView>
    <telerik:RadChart.SeriesMappings >
        <telerik:SeriesMapping>
            <telerik:SeriesMapping.SeriesDefinition>
                <telerik:HorizontalBarSeriesDefinition />
            </telerik:SeriesMapping.SeriesDefinition>
         <telerik:SeriesMapping.ItemMappings>
                <telerik:ItemMapping DataPointMember="XCategory" FieldName="Status"/>
                <telerik:ItemMapping DataPointMember="YValue" FieldName="Count"/>
            </telerik:SeriesMapping.ItemMappings>
        </telerik:SeriesMapping>
    </telerik:RadChart.SeriesMappings>
</telerik:RadChart>

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 Dec 2010, 10:01 AM
Hello Greg Mulert,

We have addressed this issue in the support ticket you've sent us.

We have been able to reproduce the unexpected behavior and our developers will work on a fix, which will be available with one of our upcoming LIBs, released each Monday.

Best wishes,
Nikolay
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
Greg Mulert
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or