Hello
I've got a problem while using ChartSeriesItem.ActiveRegion. I do generate the items programmatically and add them to a series.
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