A while back we created a TreeView with drag and drop. The drag event handler selectively calls e.setStatusClass("k-i-cancel") to disable the drop operation. In the drop event handler, e.valid used to be set to false when this happened. We are now using Kendo version 2023.3.1010 and e.Valid is always true. Something appears to be broken now. Is there some kind of fix for this? I've tried to implement the same selective disabling logic in the drop event handler as in the drag event handler, but part of the logic involves looking at the value of e.statusClass which doesn't exist in the drop event.
Hi, Bryan,
Could you please share some small sample with me where the problem with the e.valid event data can be seen?
As for the drag/drop event, one approach that you could try is to save the last values of the statusClass in a global variable and then check that variable in the drop event:
// some var outside the component config let statusClass; drag: (e) => { statusClass = e.statusClass; }, drop: (e) => { if(statusClass) {...} }
Best Regards,
Georgi