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

Last row of grid will not drag and drop

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 08 Aug 2011, 04:22 PM

the folowing is my drag and drop code behind but the problem is that every row drags and drops and works except for the last row in the grid.  Is there something I need to change or do differnetly to get the last row to drag and drop.

Protected Sub myGridPErsonnel_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles myGridPErsonnel.RowDrop
      If e.DestDataItem.OwnerTableView.ClientID = myGridPositions.MasterTableView.ClientID Then
          For i As Integer = 0 To e.DraggedItems.Count - 1
              Dim SSN As String = e.DraggedItems(i).GetDataKeyValue("SSN")
              Dim PositionId As Integer = e.DestDataItem.GetDataKeyValue("intPositionId")
              HFSSN.Value = SSN
              HFPosition.Value = PositionId
              FillInfo(SSN, PositionId)
              pnlPersonnelInfo_POP.Show()
          Next
      End If
  End Sub

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 11 Aug 2011, 09:01 AM
Hello Kevin,

I would suggest you to review the following online demo which presents the correct behaviour of the RadGrid Drag and Drop functionality. Test it on your side and let me know if it works for you.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or