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

Render and DataBound events not working on React Chart

1 Answer 171 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Akhmad Agosto
Top achievements
Rank 1
Akhmad Agosto asked on 18 Jan 2018, 07:40 AM

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

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 Jan 2018, 11:36 AM
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.
Tags
Integration with other JS libraries
Asked by
Akhmad Agosto
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or