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

ChartDataSource Category/Value binding from code behind

1 Answer 191 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 13 Jun 2012, 04:29 PM
Hello Telerik,

I'm trying to bind a ChartDataSource control to a dictionary, then draw a LineSeries. 

Previously, I made extensions classes to the DataPointBinding class for binding to the dictionary, no problem! Problem is that the ChartDataSource never gets populated. It stays empty even after adding a new item to the dictionary and re-setting the chartdatasource.itemsource=dictionary.

I am adding the chartdatasource to the window with the radcartesianchart prior to adding the series to the graph.

Could I have an example of how to set the Category/Value Binding for a ChartDataSource in codebehind please?

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 15 Jun 2012, 09:04 AM
Hello Dan,

We have attached a runnable sample application that achieves the desired functionality.

Hope this helps.


Greetings,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ChartView
Asked by
Dan
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or