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

Dynamic data source problem in Chart

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 17 Sep 2012, 03:23 AM
Hi all,

I bind a list object as a data source in my report. I created a group and for every 'id' in detail section i want to show two properties in chart. Think that my class is

public class SurveyListGraphicalCompareModel
    {
        public string Question{ get; set; }
        public Guid? QuestionID { get; set; }
        public decimal? avgScore { get; set; }
        public decimal? avgScoreEx { get; set; }
    }

I produce List<SurveyListGraphicalCompareModel> data source from database and bind it to report in my
page's code behind like that :

Reporting.GraphicalComparison rapor = new Reporting.GraphicalComparison();
 myReport.DataSource = myDataSource;
 this.ReportViewer1.Report = myReport;


I grouped data source by QuestionID. And for every QuestionID i want to display Question and a chart(Avg-Sc
ore, AvgScoreEx) in a horizontal series orientation. But i failed and get "There is no or empty series"
error. I could understand how to identify a series regarding to data source field. Could not find any
tutorial explains how to dynamically data bind in telerik reporting chart.
 The examples i looked up were always on static data source. Could you please show me some examples about that or help me for this specific problem.

Thanks. 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Sep 2012, 01:27 PM
Hi Matthew,

Take a look at the following forum threads that should get you started:

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or