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

drag&drop icon update while draging

3 Answers 381 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Great
Top achievements
Rank 1
Great asked on 19 Nov 2015, 12:46 PM

Hello,

 

assume we a simple tree with items of type A, B and C. It is not possible to drop C into A. I know how cancel a drop - in drop event, just set valid to false. Is it possible to visualy show the user that he/she cannot drop an item of type C into an item of type A in the drag event? And is it possible to template the drag&drop icon  while dragging it?

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 20 Nov 2015, 08:44 AM
Hello,

You can use the setStatusClass to change the status of the drag clue in the drag event of the widget as shown here:
http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#events-drag

The template for the drag clue can also be modified as shown in this forum post:
http://www.telerik.com/forums/drag-from-treeview-with-custom-hint

Regards,
Marin
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Great
Top achievements
Rank 1
answered on 20 Nov 2015, 02:00 PM

Hello,

 Thank you for the answer, but your answer is for the treeview component and this is about the treelist component. The other thing, while debuging in chrome i found that the event has a function setStatus. And this function works. But http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#events-drag does not mention this nor points to the event object that i recieve in the event function.

 

Plus i am using typescript and the event has interface TreeListDragEvent and it does not contain any setStatus function.

 

This might also be correctly implemented in kendo, but it is missing in the typescript file/documentation.

0
Marin
Telerik team
answered on 20 Nov 2015, 02:49 PM
Hello,

Thank you for the feedback, it seems that the drag events of the TreeView and TreeList share common arguments and methods. I will tag this for improvement in our documentation.

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