This is a migrated thread and some comments may be shown as answers.
Drag Drop Issue
1 Answer 32 Views
This is a migrated thread and some comments may be shown as answers.
Brian Baker
Top achievements
Rank 1
Brian Baker asked on 23 Apr 2010, 09:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Apr 2010, 08:44 AM
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.
Asked by
Brian Baker
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or