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.
1 Answer, 1 is accepted
answered on 14 Nov 2012, 08:52 AM
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")
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!