I have a WPF control which has RADGridView in it. I included that control inside a Windows Form using element host. But when I started dragging GridView row outside the element host it doesn't let me do that.
Another problem I wanted to drop a row from RagGridView to Desktop. How can I implement that. It would be nice if you respond promptly.
Thanks in Advance..
Sanket
9 Answers, 1 is accepted
In order to allow dragging outside your application or outside the element host you need to enable native drag mode to our raddraganddropmanager. To do that you need to add the following code:
RadDragAndDropManager.EnableNativeDrag = true;
This has to be set once, preferably on application start (or app constrictor in wpf apps) or before initialize component of the wpf view.
Let me know if you need any further assistance.
Regards,
Tsvyatko
the Telerik team
Regards
Sanket
I have prepared simple application demonstrating dragging from and to external programs.
If you have any further issues or questions do not hesitate to contact us.
Kind regards,
Tsvyatko
the Telerik team
I tried your example, I found that drop from external (window2) is not working for me. Wonder whether it's an restriction for the trial version of Telerik? I am using Q2 2012 SP2.
The example is a bit outdated, since there have been some changes in the Drag and Drop Mechanism since Q3 2010. I am attaching a modified version of the project with our latest dlls for your reference.
Hope it helps!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
The drop from external program still doesn't work for me in your example, I am running windows 7 by the way.
Eric
The reason is that the example shows how to drop files in the application. All the events are fired correctly, and you should be able to extract the needed data from the dragged payload. You must cast it to DataObject and use the GetData method to extract the needed information.
Let me know if this helps!
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
When I drag a file over the green listbox, I don't even have the drop cue, I set breakpoints at the drop query and drop info events, they are not fired. If you have an example that use DragDropManager that's working for RadGridView, that will be great too! Thanks.
Eric
Here is a simple example with DragDropmanager and RadGridView.
Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.