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

4 posts, 0 answers
  1. Sushil
    Sushil avatar
    2 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    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. 
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 31 Aug 2012 Link to this post

    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!
  3. Sushil
    Sushil avatar
    2 posts
    Member since:
    Aug 2012

    Posted 31 Aug 2012 Link to this post

    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.

  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 31 Aug 2012 Link to this post

    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!
Back to Top