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

Binding Rad chart using Data set

2 Answers 94 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 22 Nov 2010, 09:59 AM
Hi,
I am using two tables in a data set. I need to bind these two tables in two different rad charts.
Is it possible ?
If so can you please explain the steps to achieve this ?

2 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 24 Nov 2010, 03:09 PM
Hi Antony,

Yes it is possible. 

 There is an example that shows data binding to database.
http://demos.telerik.com/aspnet-ajax/chart/examples/databinding/database/defaultcs.aspx

Something similar to this snippet should work for your case:

RadChart1.DataSource = myDataSet.Tables[0];
RadChart1.DataBind();
RadChart2.DataSource = myDataSet.Tables[1];
RadChart2.DataBind();


I hope this is going to sort out the problem.

 

Best wishes,
Evgeni "Zammy" Petrov
the Telerik team
New release coming up this week! Sign up to see what's new in Telerik TeamPulse Q3 2010!
Thursday, November 18, 2010 2:00 PM - 3:00 PM EST: Register today!
0
Antony
Top achievements
Rank 1
answered on 24 Nov 2010, 04:25 PM
Thanks a ton for you help Zammy..
Tags
Chart (Obsolete)
Asked by
Antony
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Antony
Top achievements
Rank 1
Share this question
or