Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
523
Chart Click event
posted

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

Parents
  • 28496
    Offline posted
     try using javascript to add an event handler to the chart's root HTML element when the body is done loading, like this:

      <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>

Reply Children
No Data