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

Chart Resize

4 Answers 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 04 Dec 2008, 01:20 PM
Hi,
I can succesfully resize the chart within a radpane at run-time (clientside) using

 

function ResizeChart(sender, args)

 

{

 

var chart = $get("<%= RadChart1.ClientID %>");

 

 

var chartimg = chart.getElementsByTagName("img")[0];

 

chartimg.style.setAttribute(

"width", sender.get_width() + "px");

 

chartimg.style.setAttribute(

"height", sender.get_height() + "px");

 



However, the image is stretched. How can i "repaint?" the chart image to its new size rather than just stretching ?

Thanks
Mark

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 08 Dec 2008, 07:08 AM
Hello Mark,

You can find an example here.

Regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 08 Dec 2008, 12:18 PM
Hi,

using this example "stretches" the image though...

Mark
0
Ves
Telerik team
answered on 08 Dec 2008, 01:25 PM
Hello Mark,

You will find 3 attachments to the initial message. One of them is ResizeChartInSplitterServerSide_WebUI.zip. Did you check it?

Regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 08 Dec 2008, 01:36 PM
Hi,

I have not checked that... i will take a look later today.

Thanks
Mark
Tags
Chart (Obsolete)
Asked by
Mark
Top achievements
Rank 1
Answers by
Ves
Telerik team
Mark
Top achievements
Rank 1
Share this question
or