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

Drag N Drop B/w RadGridView N Desktop..

9 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sanket Singhvi
Top achievements
Rank 1
Sanket Singhvi asked on 31 Jan 2011, 07:23 PM
Hi,

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

Sort by
0
Tsvyatko
Telerik team
answered on 01 Feb 2011, 09:24 AM
Hi Sanket Singhvi,

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
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Sanket Singhvi
Top achievements
Rank 1
answered on 23 Feb 2011, 10:14 PM
Could you please provide an example of Drag N Drop on RADGridView to and From Desktop (Non WPF Control) using the RADDragAndDropManager.

Regards
Sanket
0
Tsvyatko
Telerik team
answered on 24 Feb 2011, 11:00 AM
Hi Sanket Singhvi,

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
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Eric
Top achievements
Rank 1
answered on 10 Oct 2012, 06:09 AM
Hi there,
   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.
0
Nick
Telerik team
answered on 10 Oct 2012, 08:00 AM
Hello Sanket,

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! 

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eric
Top achievements
Rank 1
answered on 10 Oct 2012, 10:00 AM
Hi Nik,
   The drop from external program still doesn't work for me in your example, I am running windows 7 by the way.

Eric
0
Nick
Telerik team
answered on 10 Oct 2012, 11:31 AM
Hi 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! 

All the best,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eric
Top achievements
Rank 1
answered on 10 Oct 2012, 11:36 AM
Hi there,
   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
0
Nick
Telerik team
answered on 10 Oct 2012, 12:58 PM
Hi Eric,

Here is a simple example with DragDropmanager and RadGridView.

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Sanket Singhvi
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Sanket Singhvi
Top achievements
Rank 1
Eric
Top achievements
Rank 1
Nick
Telerik team
Share this question
or