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

Binding a chart item to a subset in your primary data source

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Kniskern
Top achievements
Rank 1
Michael Kniskern asked on 12 Sep 2012, 09:51 PM
I want to bind a subset of my data source to chart object on my Telerik report and I cannot figure out how to accomplish this.

public class MyObject
{
    public int ID { get; set; }
    public string Name { get; set;}
    public List<MySubObject> SubList { get; set; }
}
 
public class MySubObject
{
    public int ID { get; set; }
    public decimal Percentage { get; set; }
    public string SurveyGroupName { get; set;}
}

I want to bind my chart object to the SubList property in the MyObject class.



1 Answer, 1 is accepted

Sort by
0
Michael Kniskern
Top achievements
Rank 1
answered on 13 Sep 2012, 03:42 PM
I was able to figure out how to bind a chart object to the List<MySubObject>.  Under the Properties window of the Chart object, select the Bindings options and click the "New" button.  Under the Property Path column, select DataSource.  Under the Expression column, select "=Fields.SubList".
Tags
General Discussions
Asked by
Michael Kniskern
Top achievements
Rank 1
Answers by
Michael Kniskern
Top achievements
Rank 1
Share this question
or