drag&drop icon update while draging

4 posts, 0 answers
  1. Great
    Great avatar
    2 posts
    Member since:
    Dec 2013

    Posted 19 Nov 2015 Link to this post

    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

  2. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 20 Nov 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Great
    Great avatar
    2 posts
    Member since:
    Dec 2013

    Posted 20 Nov 2015 in reply to Marin Link to this post

    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.

  5. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 20 Nov 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready