Drag N Drop B/w RadGridView N Desktop..

10 posts, 0 answers
  1. Sanket Singhvi
    Sanket Singhvi avatar
    20 posts
    Member since:
    May 2010

    Posted 31 Jan 2011 Link to this post

    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
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 01 Feb 2011 Link to this post

    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>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sanket Singhvi
    Sanket Singhvi avatar
    20 posts
    Member since:
    May 2010

    Posted 23 Feb 2011 Link to this post

    Could you please provide an example of Drag N Drop on RADGridView to and From Desktop (Non WPF Control) using the RADDragAndDropManager.

    Regards
    Sanket
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 24 Feb 2011 Link to this post

    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!
  6. Eric
    Eric avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Oct 2012 Link to this post

    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.
  7. Nick
    Admin
    Nick avatar
    593 posts

    Posted 10 Oct 2012 Link to this post

    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.

  8. Eric
    Eric avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Oct 2012 Link to this post

    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
  9. Nick
    Admin
    Nick avatar
    593 posts

    Posted 10 Oct 2012 Link to this post

    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.

  10. Eric
    Eric avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Oct 2012 Link to this post

    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
  11. Nick
    Admin
    Nick avatar
    593 posts

    Posted 10 Oct 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready