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

Chart resize - broser

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 06 Sep 2012, 06:16 AM
Hi,

i have a problem with the refresh/resize from the Chart, if i resize the Browser the Cahrt is still in the original size before. I have to click F5 to resize the Chart in the browser.
I attached my KendoChart Project. Open the index.html in your browser, resize the browser and you will see the problem.

How can i solve this...

Best Regards
Thanks
Rene

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 10 Sep 2012, 01:40 PM
Hi Rene,

Generally speaking, once rendered the Kendo UI Chart cannot be resized due to the browser limitations. In order to get the desired behavior you can call the refresh() method of the chart's client object, so that the widget is recreated with the new dimensions. Like here: 
$(window).resize(function(){
    $("#chart").data("kendoChart").refresh();
});

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
ITA
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or