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

Drop and Drop to Empty Grid

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 30 Sep 2008, 08:41 PM
I have 2 grids.  The one (RadGrid1) on the left is filled with data and the one on the right (RadGrid2) is empty.  When a row from RadGrid1 gets dragged to RadGrid2, the RadGrid1 Rowdrop event gets fired.  Usually I would check for e.DestDataItem if I am dropping in between rows, but I am not sure how to check if a row gets dropped on an empty grid.  Any advice would be great.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 01 Oct 2008, 02:53 PM
Hello Derek,

You can check if the destination grid does not contains any items and the htmlElement is empty. Please refer to this online demo for example of how to achieve similar functionality.

Regards,
Rosen
the Telerik team

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