Drag Drop Issue

2 posts, 0 answers
  1. Brian Baker
    Brian Baker avatar
    10 posts
    Member since:
    Mar 2010

    Posted 23 Apr 2010 Link to this post

    When I try to add the handlers

     

     

    RadDragAndDropManager.AddDragQueryHandler(this, OnDragQuery); RadDragAndDropManager.AddDropQueryHandler(this, OnDropQuery); RadDragAndDropManager.AddDropInfoHandler(this, OnDropInfo);

     

     

     


    I continue to get the error 
    The name 'OnDragQuery' does not exist in the current context 
    The name 'OnDropQuery' does not exist in the current context
    The name 'OnDropInfo' does not exist in the current context

    Any idea what I am doing wrong? 

    thanks
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Apr 2010 Link to this post

    Hello Brian Baker,

    After you subscribe to the DragDrop events like you do, you need to create the event handlers, like so:

    // OnDragQuery event handler
    private void OnDragQuery( object sender, DragDropQueryEventArgs e )
    {
    }
    // OnDropQuery event handler
    private void OnDropQuery( object sender, DragDropQueryEventArgs e )
    {
    }
    // OnDropInfo event handler
    private void OnDropInfo( object sender, DragDropEventArgs e )
    {
    }
    // OnDragInfo event handler
    private void OnDragInfo( object sender, DragDropEventArgs e )
    {
    }


    You can also take a look at this HowTo article. Please give it a try and let us know if it works for you or if you need more info. 

    Regards,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top