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

Drag and drop functionality between Radgrid and RadTreeview

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 17 May 2011, 07:12 PM

 

When I drag and drop a selected row from ASP.NET Ajax (Telerik.web.ui) Radgrid (inside a usercontrol) to a RadTreeview node (inside a usercontrol),

I am able to capture the Datakeyitem of the Radgrid on the RowDrop serverside event of the Radgrid, like

   Private Sub grdEquipments_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles grdEquipments.RowDrop

        Dim dataItem As GridDataItem = e.DraggedItems(0)

        Dim s As String = dataItem.OwnerTableView().Items(dataItem.ItemIndex).GetDataKeyValue("ID")

    End Sub

But I am not able to get the refrence to the Treeview Node  on which the Item is being dropped.
Do you have any sample projects where you have this functinality.

 please note that these two controls are in separate usercontrols.

 

Thanks
Madhu Rao

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 May 2011, 07:22 AM
Hello Madhu,

I hope this code library will help you to achieve your requirement.
Drag and Drop between RadGrid and RadTreeView

Thanks,
Shinu.
Tags
Grid
Asked by
Madhu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or