This is a migrated thread and some comments may be shown as answers.

Extracting the Chart from session from a popup window

2 Answers 81 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 03 Sep 2009, 03:18 PM
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 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 08 Sep 2009, 06:51 AM
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.
0
CSurieux
Top achievements
Rank 2
answered on 08 Sep 2009, 02:14 PM
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

Tags
Chart (Obsolete)
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Ves
Telerik team
CSurieux
Top achievements
Rank 2
Share this question
or