Everything works fine, creating the ChartServerControl, binding the data, drawing it all.
The issue comes when assigning the imagemap for tooltip popups.
When doing a
<i>
Protected ChartHolder as System.Web.UI.WebControls.Panel
Function GetChart() as XCeed.Chart.Server.ChartServerControl
~ CODE To build the chart
End Function
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cChart As Xceed.Chart.Server.ChartServerControl = GetChart()
Me.ChartHolder.Controls.Add(cChart)
'write the tooltips stuff
Dim imageMap As HTMLImageMap = New HTMLImageMap
cChart.ServerConfiguration.DefaultResponse = imageMap
End Sub
</i>
The end code results in a javascript error.
(HTML Rendered Code)
<i>
<div id="_ctl2_ChartHolder">
<img id="_SalesGraph_7f8a40cb4d024b88b19c7925aa59e808" usemap="#MAP__SalesGraph_7f8a40cb4d024b88b19c7925aa59e808" src="/NorthStar/images/_SalesGraph_7f8a40cb4d024b88b19c7925aa59e808.png" alt="" style="border-color:Black;border-width:1px;border-style:Solid;" /><script LANGUAGE = "JScript">
function E0MM()
{
ChartHolder._SalesGraph_7f8a40cb4d024b88b19c7925aa59e808.style.cursor = 'default';
}
</script>
<MAP NAME="MAP__SalesGraph_7f8a40cb4d024b88b19c7925aa59e808">
<AREA SHAPE="poly" COORDS="0 0, 470 0, 470 175, 0 175" onmousemove=E0MM()>
</MAP></div>
</i>
As you can see, your HTML rendered code is not taking into consideration the parent controls rendered ID/Name when writing the java for it.
I REALLY need a fix for this, or a workaround, it isn't functionally messing anything up, but i need the tooltips without the javascript error on the page.
Thanks in Advance,
Tom Anderson
Software Developer
Custom Business Solutions
http://www.cbs-posi.com