Big problem with drag and drop

2 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 20 Jul 2009 Link to this post

    I'm trying to develop a simple sample with drag and drop but I've got big iussue...
    first of all in all the C# demos I've got this :

                    new EventHandler<DragDropQueryEventArgs>(AllowAllDragsEventHandler), true); 

    In C# does not exist AddHandler but += and -= I missing something lately??

    I tried converting all in += but as I run my user control in a webpage I got a stackoverflow of  EventHandler<DragDropQueryEventArgs> DragQuery

    Another weird thing is that if I enable this :

      RadDragAndDropManager.SetAllowDrop(this, true); 

    Visual Studio 2008 crashes! (I've got a draganddroplistview as the sample and nothing else special inside...) If I turn if off it design it correctly....

    Any suggestion?
    Thanks in advance


  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 20 Jul 2009 Link to this post

    Hello Paolo,

    The AddHandler is an extension method and you need the

    using Telerik.Windows;

    in your usings to see it. This is a standard pattern for registering handlers for routed events in both Silverlight and WPF. The routed events are not standard CLR events, although sometimes you do get convenience wrappers for them.

    I tried to reproduce this in a sample project but I could not:

    RadDragAndDropManager.SetAllowDrop(this, true);

    Could you give us more information about the project you are using or best, send us a sample that breaks on your side.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top