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

RadCartesianChart not updating

1 Answer 200 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 09 Dec 2012, 04:10 AM
I am evaluating the Telerik controls to see if they will work better for my team than the current Infragistics controls we are using.  So I start writing a sample application that will demonstrate a resource monitor we planned on writing.  My problem is that the chart works for a couple seconds, then stops working, but if I resize the application, it starts working again for a few seconds, then stops.  Here is my Xaml:

<chart:RadCartesianChart Grid.Column="0" Grid.Row="0">
    <chart:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis FontFamily="Segoe UI" FontSize="12"/>
    </chart:RadCartesianChart.HorizontalAxis>
    <chart:RadCartesianChart.VerticalAxis>
        <chartView:LinearAxis Minimum="0" Maximum="100"/>
    </chart:RadCartesianChart.VerticalAxis>
    <chartView:BarSeries ItemsSource="{Binding LogicalProcessors}" CategoryBinding="DisplayName" ValueBinding="Value">
        <chartView:BarSeries.PointTemplate>
            <DataTemplate>
                <Rectangle Fill="Green"/>
            </DataTemplate>
        </chartView:BarSeries.PointTemplate>
    </chartView:BarSeries>
</chart:RadCartesianChart>

I am binding to an ObservableCollection that contains objects that implement INotifyPropertyChanged.  For my sanity I did this:

<ItemsControl Grid.Column="0" Grid.Row="1" ItemsSource="{Binding LogicalProcessors}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel/>
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Value}"/>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>

I can see the values updating, so I know my events are firing, the Chart just isn't updating.  If needed I can attach the entire project.  Any ideas?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 12 Dec 2012, 08:33 AM
Hi Jonathan,

Please, find attached a sample test application, which we have prepared to simulate a scenario similar to the described one. It works as expected on our side, so perhaps we are missing some of the details?

Could you, please, have a look at the app and in case the issue persists it would be very helpful for us if you're able to update it so that it is reproducible and send it back to us in a support ticket to inspect, or send us your original application, in which you have encountered the issue, so that we can debug it locally.

All the best,
Nikolay
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or