Dess said:Hello Mark,
Thank you for writing back.
If you perform the basic logic for the OnPreviewDragDrop method, the event will be fired. However, the node will be dropped according to the default logic. That is why it is not called in the referred help article where the custom drop operation is executed. Actually, you don't need to fire the PreviewDragDrop event if you use a custom TreeViewDragDropService. Could you please specify why do you need to fire this event since the whole drop logic is performed in the overridden OnPreviewDragDrop method? Thus, we would be able to think about a suitable solution and assist you further. Thank you.
Note that the TreeViewElement.DragDropService.Stopped event is suitable for detecting when the drop operation has finished.
I hope this information helps. If you have any additional questions, please let me know.
Telerik by Progress
I understand that
if I call the basic logic for the OnPreviewDragDrop method (base.OnPreviewDragDrop(e);) in my custom overwritten code, that
the TreeVewElement.DragDropService.PreviewDragDrop event will be fired. However, I was
not doing that, as per your example in the link you shared previously in this
assumptions led me to believe that if this event was not firing, why would any
of the others fire as well, since my overwritten code was never calling the
base logic. Looking at your help files
on line was of little help when creating a custom RadDragDragService class, there is absolutely no documentation
about the “PreviewDargDrop, PreviewDragHit, etc” events for the RadDragDropService, so I started making
the “Stopped” event seems to work,
without having to create a new PreviewDragDrop event and having to manually invoke it.
The reason for
needing to know what is going on at the form level, is when the user is done
drag/drop items in the list, I need to be able to save that data to our SQL
Database. It is my lack of knowledge of
how the entire DragDropService functions that has led to my issue
With all this
said, there is a lot of learning I have been doing both on the .NET C# side of
things and the Telerik side of things.
Thanks for the
help and understanding.