I have a RadChart Bar graph. It shows date values in X axis and some count on the Bars. My Bar graph has 2 series.
Now I am working on a requirement - User clicks on a Bar and will be shown a Pop-up window. I need to pass some database table identifier values as a comma separated string to the pop up to fetch some data to show in the pop up such that the comma separated values correspond to different bars in the graph. I could not find a way to bind this comma separated string value to any of the Bars (chartseriesitems). Do not know if at all this is possible.
This is my data source for the RadChart:
As of now, I have bound Date to the X-axis, Trains1 to Series 1 and Trains2 to Series 2.
I do not know to which property of the ChartSeriesItem class can I bind Trains1RecIds and Trains2RecIds. So that I can get these comma separated string values in the code behind when the user clicks on any of the Bars in the graph and pass it as a parameter to a javascript function as shown below.
Please help me to solve this.
TIA
thiru
Now I am working on a requirement - User clicks on a Bar and will be shown a Pop-up window. I need to pass some database table identifier values as a comma separated string to the pop up to fetch some data to show in the pop up such that the comma separated values correspond to different bars in the graph. I could not find a way to bind this comma separated string value to any of the Bars (chartseriesitems). Do not know if at all this is possible.
This is my data source for the RadChart:
var listDisengTrains = Final.Select(g =>
new
{ Date =
Convert.ToDateTime(g.Date).ToOADate(), Trains1 = g.Trains1,
Trains2 = g.Trains2, Trains1RecIds =
"12345,23456"
, Trains2RecIds =
"34567,45678,56789"
});
As of now, I have bound Date to the X-axis, Trains1 to Series 1 and Trains2 to Series 2.
I do not know to which property of the ChartSeriesItem class can I bind Trains1RecIds and Trains2RecIds. So that I can get these comma separated string values in the code behind when the user clicks on any of the Bars in the graph and pass it as a parameter to a javascript function as shown below.
protected
void
ChartTrains_ItemDataBound(
object
sender, ChartItemDataBoundEventArgs e)<BR>{<BR>
if
(e.SeriesItem !=
null
)<BR>{<BR>
if
(e.ChartSeries.Index %
2 == 0)<BR>{ <BR>e.SeriesItem.ActiveRegion.Url =
string
.Format(
"javascript:ShowTrainInfoForm({0}"
,
?)<BR>}<BR>
else
<BR>{<BR>;<BR>}<BR><BR>}<BR>}<BR>
Please help me to solve this.
TIA
thiru