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

Client side databound event

3 Answers 66 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 06 Sep 2016, 07:15 AM

Hi,

On the kendo side of things there seems to be a databound event that you can subscribe to.  I cannot seem to use this on the htmlchart though.  I am trying to add it to the kendo widget element of the chart but it doesn't work.  I am moving away from server side stuff where possible so need this to be client based.

kendoWidget.dataBound = function(e) {
alert("dataBound");
}

Any ideas?

Regards

Jon

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Sep 2016, 01:03 PM
Hi Jon,

Do you use this approach to get reference to the Kendo Chart:

var radHtmlChartObject = $find("<%=RadHtmlChart1.ClientID %>"); //the standard script control object
var kendoChart = radHtmlChartObject.get_kendoWidget(); //the Kendo widget


Best regards,
Rumen
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Jon
Top achievements
Rank 1
answered on 06 Sep 2016, 01:20 PM

Hi Rumen,

Yes that's right.  I've now solved this by setting it via the setOptions method.  The minor issue that I have now is that the databound call happens for each series but there is no argument passed that tells it which series is being processed.  To get around the issue I am simply processing all series each iteration, as there is no destructive behaviour that doesn't matter too much but it would be nice to know how to find out what the current series is.

Regards

Jon

0
Rumen
Telerik team
answered on 06 Sep 2016, 01:44 PM
I'm glad you get it working! Thanks for your feedback, Jon. We'll have it in mind.

Best regards,
Rumen
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart (HTML5)
Asked by
Jon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jon
Top achievements
Rank 1
Share this question
or