Hello,
We have the situation where we are calling webservices to populate an observablecollection which has been set as the ItemsSource of the radchart.
I have a very specific question: when I am removing the "ItemsSource" property from the XAML, there is no delay, but when i add it, my UI thread is freezing up, for example mouse over events do not display, animations are momentarily jumpy, and so forth.
edit: What i mean is that when populating a new source, adding each webservice result (chart points) to the observable collection which i intend to use does not cause a delay. there is only a delay and a 'freeze' or 'slowness' experienced when I have this observablecollection bound to the ItemsSource property of my radchart as in this snippet:
(please note that ElementName=ChartControl refers to the current usercontrol and the property is defined in the class as a dependencyproperty)
Is it possible to use a new thread (for example backgroundworker object or another method) to do the rendering for the chart so that my UI thread does not freeze up?
This seems like something that should be well documented, and yet I find it very hard to get information on this. Gurus, experts, please! I need your help.
Thank you in advance,
Chimp
We have the situation where we are calling webservices to populate an observablecollection which has been set as the ItemsSource of the radchart.
I have a very specific question: when I am removing the "ItemsSource" property from the XAML, there is no delay, but when i add it, my UI thread is freezing up, for example mouse over events do not display, animations are momentarily jumpy, and so forth.
edit: What i mean is that when populating a new source, adding each webservice result (chart points) to the observable collection which i intend to use does not cause a delay. there is only a delay and a 'freeze' or 'slowness' experienced when I have this observablecollection bound to the ItemsSource property of my radchart as in this snippet:
<telerikChart:RadChart x:Name="ValuesChart" Background="WhiteSmoke" d:LayoutOverrides="GridBox" |
ItemsSource="{Binding aDataSource, ElementName=ChartControl, Mode=OneWay}" |
Margin="0,25,0,0"> <!--....more here....--> |
</telerikChart:RadChart> |
(please note that ElementName=ChartControl refers to the current usercontrol and the property is defined in the class as a dependencyproperty)
Is it possible to use a new thread (for example backgroundworker object or another method) to do the rendering for the chart so that my UI thread does not freeze up?
This seems like something that should be well documented, and yet I find it very hard to get information on this. Gurus, experts, please! I need your help.
Thank you in advance,
Chimp