Drag and drop - Peview and tooltip content

5 posts, 0 answers
  1. Pieter Jan Verfaillie
    Pieter Jan Verfaillie avatar
    11 posts
    Member since:
    Dec 2009

    Posted 17 Aug 2011 Link to this post


    I'm using the drag and drop functionality of the RadTreeView, with a hierarchical list of transportation rides with multiple addresses.
    I've managed to add some logic to make sure no rides can be added to addresses and stuff like that, using the existing handlers:

    TreeviewMonday.AddHandler(RadDragAndDropManager.DropQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnDropQuery), true);

    I do, however, have 2 problems/questions when using the drag and drop between tree views:

    1. The preview, when dragging, is shown but stays empty.
    2. How can I change the tooltip that is shown when dropping is possible? I would like to change the language of the text and add custom text to it.

    (these problems are shown in the screenshot in attachment)

    Hope someone can help! Thanks in advance.

    Best regards,
    Pieter Jan
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 22 Aug 2011 Link to this post

    Hello Pieter Jan Verfaillie,

    I am not sure why the DragPreview text is gone. Can you please give us more details about your RadTreeView definition and the scenario in which it is used. Basically in a databinding scenario this text depends on the dragged RadTreeViewItem.ItemTemplate.

    As for the DropAfter/DropBefore/DropIn text, you can set the TextDropAfterTextDropBefore and TextDropIn properties of the RadTreeView. You can find more info about the RadTreeView DragAndDrop feature here. I attached a sample project to illustrate this approach. Please have a look at it and let me know if it works for you. Also, if you can modify it to reproduce the DragPreview issue, we will be able to further investigate it.

    Tina Stancheva
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
  4. Pieter Jan Verfaillie
    Pieter Jan Verfaillie avatar
    11 posts
    Member since:
    Dec 2009

    Posted 23 Aug 2011 Link to this post

    Hi Tina,

    Thanks for your reply. Those text properties are exactly what i needed.

    About the problem with the itemtemplate. For some reason, the templates are shown correctly. I don't know exactly what i changed, because there's a lot of code and logic involved, but the problem seems solved.

    Anyhow, thank you very much for your help and the sample project.

    Kind regards,
    Pieter Jan Verfaillie
  5. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 08 Aug 2012 Link to this post

    How can this be possible for RadTreelistView? Thanks
  6. Nick
    Nick avatar
    593 posts

    Posted 09 Aug 2012 Link to this post

    Hi Peter,

    You can see an example for the TreeListView here.

    Let me know if you need any further help with this! 

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft R3 2016 release webinar banner