ChartDataSource Category/Value binding from code behind

2 posts, 0 answers
  1. Dan
    Dan avatar
    8 posts
    Member since:
    Apr 2012

    Posted 13 Jun 2012 Link to this post

    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?
  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 15 Jun 2012 Link to this post

    Hello Dan,

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

    Hope this helps.

    the Telerik team

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

Back to Top