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

Chart populated from Radgrid

2 Answers 55 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 16 Aug 2010, 09:33 PM
Hi

I am having a few troubles, i have never used the charts before.

I  have a radgrid that has a number of columns which is bound to an sqldatasource.

When i click on a row in the grid i want the chart to retrieve data from the database and populate a line chart.

Example.

Columns on the grid: PlayerCode, PlayerName. (Both of these fields are from the Players table)
When you click on the row the chart will populate a line graph by getting data from the Scores table using the PlayerCode field as a join.

Im just having trouble on how to set the parameters for the chart. Also is it best to use an update panel for the chart or use client side code.

Any help is appreciated.

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 18 Aug 2010, 05:52 PM
I think this demo right here is exactly what you're looking for. This has an aggregate chart that has new data bound to it on every change of the item from the RadComboBox. All you would have to do from here is look into this article which explains how to fetch DataKeys from selected RadGrid items and you should be good to go.
0
Antony
Top achievements
Rank 1
answered on 19 Aug 2010, 05:10 PM
Thank you.

This was exactly what i needed.
Tags
Chart (Obsolete)
Asked by
Antony
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Antony
Top achievements
Rank 1
Share this question
or