Hi there,
I am trying to use the Gantt Chart to bind to a custom DataSource. I then want the click event to navigate to a new URL (passing in the ID of the element that has been clicked). Using ActiveRegionUrl='<%# Eval("RecordId", "campaignviewer.aspx?CampaignID={0}") %>' I get a message about the ChartSeries not having a DataBind method.
I have also tried this by interrogating the ClickEventArgs on click, but cannot seem to get any sensical information from it (or set anything for that matter).
Finally, I tried it without using automatic databinding as follows:
However in this way, I cannot set the label for each row and I also see a load of empty rows (labelled from 1 - 10).
Any help would be gratefully appreciated!
Alec.
I am trying to use the Gantt Chart to bind to a custom DataSource. I then want the click event to navigate to a new URL (passing in the ID of the element that has been clicked). Using ActiveRegionUrl='<%# Eval("RecordId", "campaignviewer.aspx?CampaignID={0}") %>' I get a message about the ChartSeries not having a DataBind method.
I have also tried this by interrogating the ClickEventArgs on click, but cannot seem to get any sensical information from it (or set anything for that matter).
Finally, I tried it without using automatic databinding as follows:
foreach (CampaignHeader campaignItem in oCH)
{
ChartSeriesItem chartItem = new ChartSeriesItem();
chartItem.ActiveRegion.Url = string.Format("campaignviewer.aspx?CampaignId={0}", campaignItem.RecordId);
chartItem.Name = campaignItem.CampaignName;
chartItem.YValue = campaignItem.OAStart;
chartItem.YValue2 = campaignItem.OAEnd;
rcCampaign.Series[0].Items.Add(chartItem);
}
However in this way, I cannot set the label for each row and I also see a load of empty rows (labelled from 1 - 10).
Any help would be gratefully appreciated!
Alec.