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

Drag and drop - Peview and tooltip content

4 Answers 141 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Pieter Jan Verfaillie
Top achievements
Rank 1
Pieter Jan Verfaillie asked on 17 Aug 2011, 12:49 PM
Hi,


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

4 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Aug 2011, 05:47 PM
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.

Regards,
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 >>

0
Pieter Jan Verfaillie
Top achievements
Rank 1
answered on 23 Aug 2011, 11:11 AM
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
0
Peter
Top achievements
Rank 1
answered on 08 Aug 2012, 11:56 PM
Hi,
How can this be possible for RadTreelistView? Thanks
0
Nick
Telerik team
answered on 09 Aug 2012, 11:18 AM
Hi Peter,

You can see an example for the TreeListView here.

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

Regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DragAndDrop
Asked by
Pieter Jan Verfaillie
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Pieter Jan Verfaillie
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Nick
Telerik team
Share this question
or