Here is my scenario, I show a thumbnail chart in default page, when the user clicks on that chart I will take the user to detail page where I display full detailed chart of the same thumnail.
Now the problem, user wants to click on the whole chart instead of data points. I used ClientOnMouseClick event to navigate to the other page, but user has to click on the data points to go next page. But what user wants is click on the whole grpah [anywhere in the graph] should take him to detaild page like putting a hyperlink on the image
<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title> <script type="text/javascript">function body_onLoad(){ document.getElementById("UltraChart1").onclick = function() { window.open("http://ko.infragistics.com", "_self"); }} </script></head><body onload="body_onLoad();"> <form id="form1" runat="server"> <igchart:UltraChart ID="UltraChart1" runat="server" /> </form></body></html>
I am using a master page, and the chart is part of a User Control that I add to a WebPanel...
Is there a way to create this java script programatically on the server-side? the bulk of my javascript is in the master page, and the gantt chart control will not exist until it the control is added... (and there are mulpitle controls added on the page depending on user selections)