Telerik Forums RSShttp://www.telerik.com/urn:uuid:c7dd8ee2-5208-42f6-822b-c24b99084102http://www.telerik.com/forums/permalink/4o7dxwhS9kKCK8JLmQhBAgDrag and Drop DragCue ChangeHi Scott,
<p>&nbsp;You have two options:<br />
<br />
&nbsp;- use DragOverTree event and get modify the drag cue there (you can access it from RadDragAndDropManager.Options.DragCue, or save it in a local variable on dragQuery)<br />
<br />
&nbsp;- use dropQuery (you need to subscribe with the following code:
<div class="tFormatCodeBlock supportThreadCodeBlock" style="border:1px solid #7f9db9;overflow-y: auto;" id="highlighter_67350">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">tree.AddHandler(RadDragAndDropManager.DropQueryEvent,</code><code style="color: #006699; font-weight: bold;">new</code> <code style="color: #000000;">EventHandler&lt;DragDropQueryEventArgs&gt;(OnDropQuery),</code><code style="color: #006699; font-weight: bold;">true</code><code style="color: #000000;">));</code></span></div>
</div>
</p>
<br />
Let us know if you have any further questions regarding this scenario.<br />
All the best,<br />
Tsvyatko <br />
the Telerik team
<div class="forumBaloonTop"></div>
<div class="forumBaloon">
<p class="MsoNormal" style="line-height: normal; margin-top: 0in; margin-right: 0in; margin-bottom: 10pt; margin-left: 0in;"><span style="font-family: arial, sans-serif; font-size: 7pt; color: #333333;">Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. </span><a href="http://www.telerik.com/account/your-products/trial-product-versions/download-trial-file.aspx?pid=763"><span style="text-decoration: none; font-family: arial, sans-serif; font-size: 7pt; color: #3366cc;">Get it now &gt;&gt;</span></a><span style="font-family: arial, sans-serif; font-size: 7pt; color: #333333;"><o:p></o:p></span></p>
</div>
<div class="forumBaloonBottom"></div>urn:uuid:8b807991-2658-4d85-9858-e0699fca74c1http://www.telerik.com/forums/permalink/kXmAi1gmhU2YWOBpn8p0wQDrag and Drop DragCue ChangeIs there a way that&nbsp;I can use the built in Drag and Drop handler while Dragging and Dropping in a RadTreeView, while modifying the DragCue message?&nbsp; I have a couple of my own rules that I use in a PreviewDragEnded function, and I would like to change the DragCue to show what is allowed or not.&nbsp; <br />
<br />
For example, if I have a tree with <br />
Tree<br />
--Nest<br />
---Bird<br />
---Bird2<br />
<br />
I can set the PreviewDragEnded function to check that you don't drop a Nest&nbsp;into&nbsp;a bird.&nbsp; If you do, then I use e.handled = true and ignore the drag and drop action.&nbsp; I would like for the DragCue to show that it is not allowed first, instead of just not allowing it after the mouse button is released.&nbsp; I can do this if I write the DragQuery, DragInfo, DropQuery, and DropInfo functions, but I want to use the Rad versions of these functions that already exist (except for the modified DragCue, of course).<br />
<br />
Thanks for your help.<br />
Scott