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

ChartSeriesItem.ActiveRegion Problem

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fabian
Top achievements
Rank 1
Fabian asked on 06 Nov 2012, 07:54 AM
Hello

I've got a problem while using ChartSeriesItem.ActiveRegion. I do generate the items programmatically and add them to a series.
foreach (var a in b)
{
    ChartSeriesItem objItem = new ChartSeriesItem();
    objItem.YValue = 1;
    objItem.Name = "test";
    objItem.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click);
    objItem.ActiveRegion.Attributes = "onclick:alert('test')";
    objItem.ActiveRegion.Tooltip = "test";
    objItem.ActiveRegion.Url = "www.google.com";
    objSeries.Items.Add(objItem);
}

void ActiveRegion_Click(object sender, RegionClickEventArgs args)

{

 

throw new NotImplementedException();

}

But the handler is not getting fired nor the alert is shown..

Is there something i miss?

Thanks and best regards

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 07 Nov 2012, 11:11 AM
Hello Fabian,

If your inquiry is about Telerik Reporting, this is expected as the chart item does not support active regions or any other interactivity except the one inherent to other report items outlined in the Adding Interactivity to Reports help article.

Kind regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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