im starting to use Telerik Reporting Chart, but i cannot find the onclick event on any of chart items. In documentation of Ajax Chart i've found: "Use the RadChart OnClick event to handle server postbacks caused by clicking on areas of the chart.". I would like to get any click event made on different chart bars to redirect to a page with details info and everything has to be done in-code.
Below you see my test code for chart configuration:
Report report = new Report();
DetailSection detail = new DetailSection();
Telerik.Reporting.Chart progchart = new Telerik.Reporting.Chart();
progchart.BitmapResolution = 96F;
progchart.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;
progchart.Location =
new Telerik.Reporting.Drawing.PointU
(new Telerik.Reporting.Drawing.Unit(0.3, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))),
new Telerik.Reporting.Drawing.Unit(1.8, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))));
progchart.Name = "progchart1";
progchart.PlotArea.EmptySeriesMessage.Appearance.Visible = true;
progchart.PlotArea.EmptySeriesMessage.Visible = true;
progchart.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(9.6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))), new Telerik.Reporting.Drawing.Unit(6.1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))));
// Create a ChartSeries and assign its name and chart type
ChartSeries chartSeries = new ChartSeries();
chartSeries.Name = "Sales";
chartSeries.Type = ChartSeriesType.Bar;
// add new items to the series,
// passing a value and a label string
chartSeries.AddItem(120, "Internet");
chartSeries.AddItem(140, "Retail");
chartSeries.AddItem(35, "Wholesale");
progchart.Series.Add(chartSeries);
// add the Chart to the page.
detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { progchart });
report.Items.Add(detail);
BR,Grzegorz Smoliński