Kendo Chart - Get object of active chart

2 posts, 0 answers
  1. Jineesh
    Jineesh avatar
    11 posts
    Member since:
    Oct 2012

    Posted 09 Nov 2012 Link to this post

    Hi,

         I have three chart with different ids in a page. At a time only one chart will be enabled and others are disabled.
         My requirement is how to get the clientside object of enabled chart. Chart has created using the kendo helper class.
         Please help me how to solve this issue.
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2892 posts

    Posted 14 Nov 2012 Link to this post

    Hello Jineesh,

    The widget client object is preserved in the jQuery data store for the corresponding element. In order to get the client side object of the chart you should select the corresponding element via jQuery selector and use the following code:
    $("<chart element selector>").data("kendoChart");

    At a time only one chart will be enabled and others are disabled. My requirement is how to get the clientside object of enabled chart.

    Could you please specify how do you disable/enable the charts? In general if you attach a class "enabled" to the enabled chart you will be able to use a class selector: $(".k-chart.enabled")

    Regards,
    Alexander Valchev
    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