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

Multiple Charts with dynamic binding on a single Click of a link

3 Answers 120 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sushil
Top achievements
Rank 1
Sushil asked on 28 Aug 2012, 09:32 AM
Hi,

I want to call n number of kendo charts on single click of a button in MVC4 Architecture..the Charts must be dynamically bind.
Please let me know if any Method or function is there. 

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 31 Aug 2012, 07:46 AM
Hi,

All of the DataViz demos create the chart dynamically. You only need to create a DOM element and call kendoChart with the necessary options. For example:

$("#container").append("<div class='myChart' />").kendoChart({ ... });

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sushil
Top achievements
Rank 1
answered on 31 Aug 2012, 09:40 AM
Hi,
Thanks for Reply,
But Actually I am calling the value from Multiple datamodels for different Charts....so i don't want to use DOM . So please check if any other solution is there.

0
T. Tsonev
Telerik team
answered on 31 Aug 2012, 02:37 PM
Hi,

I suppose you can try to create the different charts in partial views and load them with AJAX. This will allow you to use your models, as you normally would, but still load the charts dynamically.

Regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sushil
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Sushil
Top achievements
Rank 1
Share this question
or