Render and DataBound events not working on React Chart

2 posts, 0 answers
  1. Akhmad Agosto
    Akhmad Agosto avatar
    12 posts
    Member since:
    Oct 2017

    Posted 18 Jan 2018 Link to this post

    I want to call the resize() method onto the chart so it automatically resized upon rendering, but it throws this error:

    kendo.all.js:124 Uncaught TypeError: r[n].call is not a function

    Same thing happens with DataBound event. Demo here:

    http://dojo.telerik.com/oPAFO

  2. Stefan
    Admin
    Stefan avatar
    3012 posts

    Posted 19 Jan 2018 Link to this post

    Hello, Akhmad,

    Thank you for the provided example.

    The issue occurs because the render function is defined as an object with a function inside of it, but it should be only a function:

    http://dojo.telerik.com/oPAFO/3

    render:function(e){
      e.sender.resize()
    },

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top