Extracting the Chart from session from a popup window

Thread is closed for posting
3 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Sep 2009 Link to this post

    Hello,

    I want to open a full-screen popup with the chart from a first page, is there a way to do this ?
    Thanks for expert advises .

    CS
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 08 Sep 2009 Link to this post

    Hi Christian,

    For the popup you may want to take a look at RadWindow. As for extracting RadChart from the session -- the chart is identified by a guid, which is not exposed, so you could not retrieve the chart. Still, you can simply put another chart control in the popup page or use the RadChart.Save method to save the image to a file and use it in the popup.

    Kind regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 08 Sep 2009 Link to this post

    Hello Ves,

    Seems that this script triggered  on a button client click works

     

        function OpenImage() {  
            var chart = $get("<%=RadChart1.ClientID%>");  
            var im = chart.getElementsByTagName('img')[0];  
            var url = im.src;  
            window.open(url, "_blank", "height = 700pxwidth = 1000px,status=1,resizable=1,menubar=1,scrollbars=1");   
            host.focus();  
        }  
     

    Best regards.
    CS

Back to Top