Change Drag Cue Template

2 posts, 0 answers
  1. Ahmet
    Ahmet avatar
    12 posts
    Member since:
    Jan 2012

    Posted 17 Aug 2012 Link to this post


    I have been trying to implement drag and drop from a treeview to a gridview using DragDropManager. It looks like I got it to working, with a drag cue created from a datatemplate defined in treeview resources in DragInitialize event fired by the treeview. What I would like to do, is to change the dragcue when the mouse enters inside the borders of the gridview, and switch it back when it leaves the gridview borders.

    I went through the BugTracker demo source, and this concept has been done by creating a template, and controlling the image path and other textblocks with a binding property. Is this the only way to accomplish this? Is it possible to define two different datatemplates and select the appropriate one in the DragEnter and DragLeave event of the gridview?

    Can someone please clarify? A small sample code would help a lot.

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 20 Aug 2012 Link to this post


    I would suggest you to check the implementation done for the TreeView (check how the DragVisual is set). 

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top