I have a postion table that I drag and drop personnel to positions, however they want the ability to lock out positions. So what I do is put a number in a field in the db that pulls into the grid. I turn this number invisible for the column but now how can I lock out the row from being dropped to in the drag and drop event. Only using code behind so i am using the rowDrop event.
Protected Sub myGridSoldier_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles myGridSoldier.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) pnlSoldierInfo_POP.Show() Next End If End Sub