Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Chart Click event

Last post 07-08-2008 16:28 by [Infragistics] David Negley. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-03-2008 14:00

    • rmaiya
    • Top 500 Contributor
    • Joined on 04-09-2008
    • Points 355

    Chart Click event

    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

    • Post Points: 50
  • 06-10-2008 17:37 In reply to

    Re: Chart Click event

     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://www.infragistics.com", "_self");
            }
    }    
        </script>
    </head>
    <body onload="body_onLoad();">
        <form id="form1" runat="server">
            <igchart:UltraChart ID="UltraChart1" runat="server" />
        </form>
    </body>
    </html>

    • Post Points: 5
  • 06-30-2008 2:39 In reply to

    Re: Chart Click event

    HI , i need to show chart in thumbnail , how did u do it, can you give me some suggestions or through code, regards winnie cherian
    • Post Points: 5
  • 06-30-2008 2:48 In reply to

    Re: Chart Click event

     

    HI , i need to show chart in thumbnail , how did u do it, can you give me some suggestions or through code,

    regards winnie cherian

    Filed under: ,
    • Post Points: 20
  • 07-08-2008 16:28 In reply to

    Re: Chart Click event

    You can use the chart's SaveTo method to save to an image of any size, and render that to your page as an <img> element.  But if you can, it might be better to just create a small static image of a chart and use that as your thumbnail which links to the real page with the UltraChart on it.
    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems