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

OnRowDrop GridDragDropEventArgs e.HtmlElement is 'undefined'

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MMagnumPI9
Top achievements
Rank 1
MMagnumPI9 asked on 05 Aug 2008, 10:58 PM
I am trying to drag a row from a Grid into a TreeView.  After dropping the row, the OnRowDrop event is fired.

If I drop the row on an <img> or <asp:button> the GridDragDropEventArgs e.HtmlElement of OnRowDrop will return with the Id of the control.  However when dropping the row on a TreeView node the argument e.HtmlElement is always undefined.

I have refered to this article as a reference.  If I set the the destinationHtmlElement using the method args.set_destinationHtmlElement on the client side before the OnRowDrop event is fired, the argument e.HtmlElement is still undefined when OnRowDrop event is fired.

Is there another way to drop a GridRow into a TreeView? 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Aug 2008, 07:49 AM
Hi MMagnumPI9,

Can you please check whether the sample project from the following code library thread covers you requirements and behaves as expected? Note that you can use the demo as a starting point for your custom implementation.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
MMagnumPI9
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or