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

kendoDropTarget error: Cannot read property 'length' of undefined

3 Answers 297 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Boris Gheihman
Top achievements
Rank 1
Boris Gheihman asked on 06 Jan 2015, 01:01 PM
I've found a bug in DropTarget widget, here is an example of this behaviour: http://dojo.telerik.com/eGAFO/2 (check console)

To reproduce this bug you need to create both dropTarget and dropTargetArea inside the container and then do kendo.destroy on the container.
The issue is in destroy method of DropTarget widget, it checks either dropTarget or dropTargetArea internal list, but should check both of them. In my example I have one dropTarget and one dropTargetArea, and code removes group when destroying dropTarget even if dropTargetArea with this group still exists.

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 08 Jan 2015, 08:22 AM

Hello Boris,

thank you for contacting us. The problem you describe sounds like a real one, however I can't reproduce it in the linked dojo - please check the screenshot. Perhaps I am missing something? 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Boris Gheihman
Top achievements
Rank 1
answered on 08 Jan 2015, 10:11 AM
It's very strange it's not showing any error today, because yesterday it was. It may be the version change. Anyway you can add another kendo.destroy(chart) and reproduce the issue, see updated version http://dojo.telerik.com/eGAFO/3
0
Petyo
Telerik team
answered on 12 Jan 2015, 07:59 AM

Hello Boris,

thanks for the clarification - I have logged the issue in our GitHub repository, we will address it soon.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Drag and Drop
Asked by
Boris Gheihman
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Boris Gheihman
Top achievements
Rank 1
Share this question
or