Client side databound event

4 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 06 Sep Link to this post

    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

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 06 Sep Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 06 Sep in reply to Rumen Link to this post

    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

  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 06 Sep Link to this post

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