How can I bind the XamWebChart to a SeriesCollection. I'm getting data from a service, in Xml format, containing the values and styles for few series' with several datapoints.
I created SeriesCollection in my ViewModel. Now how should I bind my view to make it use the SeriesCollection to draw graphs.
You will want to check this post to get you started:
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/38169/series-binding-in-xaml-custom-attached-property
Unfortunately there seems to be a problem with the forums this morning, so this post isn't currently accessible.
-Graham
Its back up. So you can check that out if you want. But the exampl linked is really more for if you want to create the series based on a template in Xaml. If you are already creating the series collection in your View Model have you tried just binding it to the chart?
I.E if the property holding the SeriesCollection on your DataContext is called Series. Have you tried
<XamWebChart Series="{Binding Series} ...
Yes, Graham
I tried the same, as
<XamWebChart Series="{Binding ChartSeriesCollection}
where ChartSeriesCollection is a SeriesCollection object in the viewmodel.
And I got XAM_PARSE_EXCEPTOIN at the above XAML Syntax.
Hi Graham,
Please help me with rendering part.
I have used the code as is, it's not rendering anything on the screen.
I am referring to the post made by:
[Infragistics] Graham Murray on 07-26-2010 5:31 PM
Is there a slightly easier way to achieve databinding rather than use what Graham has suggested?
Hello,
Thank you for your post. I have been looking into it, but since in the thread there are a coouple of samples and links to other threads with samples, could pelase send me the one that you have issues with.
Looking forward for your reply.
Hello Graham,
I have been trying to use your example with the latest version of Infragistics Wpf release. However in the function GetAxes, you have code such as this:
xAxis = (series as AnchoredCategorySeries).XAxis;But there is no property called XAxis defined anymore. It seems that they have removed this property. How do I modify the code to get this example to work with the new version of infragistics 2012 version.
Hi,
Where are you running into the overhead? Do you have a profile? You may be able to tweak that method a bit to avoid the issue. There should be a bit of overhead when the custom type is generated, but as long as most of the dynamic types look the same it should be hitting the dictionary for each subsequent type that needs to be created.
Also, xamGrid probably supports binding against dictionaries, I would assume, is there a reason you aren't using that approach?
I'm not too familar with the xamGrid's backlog. I'd recommend makign a feature request, or possibly emailing productmanager@infragistics.com to inquire further.